jquery - colorbox plugin, I need to submit form via ajax -
If I am using, how do I submit a form via AJAX and then I will create a new model from the response ? For example, a user clicks on a link and pops up a modal. They fill out the form and click submit and then the model should be changed in the next form. Then they fill the next one etc. ...
You should be able to load & Lt; Div id = "cbox loaded content" & gt;
with the result of your AJAX call with the first color box invocation:
$ ('# cbox loaded content'). Load ('Form- Process.php', formData);
If the new form you are loading is a different size, then you should call the color box size () method to adjust the size of the model:
$ Colorbox.resize ();
Comments
Post a Comment