You can use this function var datastring = $("#contactForm").serialize(); $.ajax({ type: "POST", url: "your url.php", data: datastring, ... ... <看更多>
Search
Search
You can use this function var datastring = $("#contactForm").serialize(); $.ajax({ type: "POST", url: "your url.php", data: datastring, ... ... <看更多>
/*Sometimes when you do an ajax form post in jQuery,. you need to merge another object into your post data. The idea behind this solution is to serialize ... ... <看更多>
Provided that your server receives data in the form of a string which it should if you're using the jQuery serialize() function. ... <看更多>