简体   繁体   中英

Getting html form output with JS/jQuery

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?

ie I have a form with numerous checkboxes, and rather than use some jQuery to grab each value and prepare the URL, I want to try the approach mentioned above.

你可以使用jQuery(form).serialize(),如下所示: http ://api.jquery.com/serialize/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM