Send HTML form post data to file with Jquery?
问题 I am trying to send post data to my post data file handler called postinfo.php with jQuery but so far I can make it. Here is my post.php code: <HTML> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> </head> <script type="text/javscript"> $('#form_id').on('submit', function(e){ e.preventDefault(); $.ajax({ type: "POST", url: "http://www.vemvo.com/test/postinfo.php", data: $(this).serialize(), success: function() { alert('success'); } }); }); </script>