jQuery Colorbox a form in popup window won't work

136 views Asked by At

I am using colorbox to popup a window with an edit form but when click submit nothing happens. What actually happens is the page just reloads without submitting any data. So here is how I call the popup:

$(document).ready(function() {
    $('.itemPopup').colorbox({ transition:'none', width:'90%', height:'90%'});
});

The form works perfectly fine outside the popup.

Can anyone share any ideas why is this happening?

Thanks

1

There are 1 answers

0
ullas kishan On
$(document).ready(function() {

    $('.itemPopup').colorbox({ transition:'none', width:'90%', height:'90%'
             ,onComplete:function() { 
             $("#buttonClick").click
     }
   });

});

write you action in oncomplete block.