Return to Snippet

Revision: 63359
at May 1, 2013 06:27 by khaled__mahmoud


Initial Code
<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>

Initial URL

                                

Initial Description
This code shows how we post HTML form by AJAX and jQuery.

Initial Title
Post form by AJAX and jQuery

Initial Tags
form, ajax, post

Initial Language
jQuery