开发者

Getting html form output with JS/jQuery

开发者 https://www.devze.com 2023-03-26 09:41 出处:网络
Is there any way to get the parameterized URL generated during the submission of an HTML form with JS/jQuery, for the purpose of performing an ajax call?

Is there any way to get the parameterized URL generated during the submission of an HTML form with JS/jQuery, for the purpose of performing an ajax call?

i.e. I have a form with numerous checkboxes, and rather than use some jQ开发者_如何学Pythonuery to grab each value and prepare the URL, I want to try the approach mentioned above.


You can use the jQuery(form).serialize() as documented here: http://api.jquery.com/serialize/

0

精彩评论

暂无评论...
验证码 换一张
取 消