JQuery serialize Method jQuery AJAX Methods. The serialize method creates a URL encoded text string by serializing form values. You can select one or more form elements (like input and/or text area), or the form element itself.
Active3 months ago
I want to add extra data after i use $('#myForm').serialize() + extra data
Joko WandiroJoko Wandiro1,3421 gold badge13 silver badges27 bronze badges
3 Answers
What kind of data?
The 'data' parameter is just a URL encoded string. You can append to it however you like. See the API here.
jthompsonjthompson5,7262 gold badges28 silver badges30 bronze badges
Personally, I'd append the element to the form instead of hacking the serialized data, e.g.
Jquery Submit Form Without Refresh
That way, you don't have to worry about
Bastien Jansen?
or &
7,6362 gold badges27 silver badges49 bronze badges
steadwebsteadwebJquery Ajax Example Json
6,4361 gold badge15 silver badges27 bronze badges
PrakashGPrakashG
1,5674 gold badges14 silver badges25 bronze badges