/ Published in: jQuery

This code shows how we post HTML form by AJAX and jQuery.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script> $(document).ready(function () { $("#Form1").submit(function (Event) { Event.preventDefault() $.post( "Insert.php", $(this).serialize(), function (Data) { // Success } ) }) }) </script>
Comments
