We have used all of the jQuery serialize methods, that will convert form data into serialize string and send it to server-side. Stop autocomplete showing textbox history. Add the following code inside the active theme's functions.php file. This method forms a key-value query string by taking all of the form input names, as well as their values. This is the thing: var data1 = document.getElementById ('form1').serialize (); NOTE: form1 is form's id .You need to set it within <form id="form1"></form > var data2 = document.getElementById ('form2').serialize (); We see that serialized values from two input fields . It can be acts on a jQuery object which has selected different form controls like input tag, textarea tag and select tag. "jquery serialize two strings" Code Answer. It can act on a jQuery object that has selected individual form controls, such as ,