Created
March 28, 2013 05:35
-
-
Save udibagas/5260934 to your computer and use it in GitHub Desktop.
ajax submit form dengan jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
FORM DI SINI | |
--> | |
<div class="html-response"></div> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript"> | |
$('form').sumbit(function() { | |
$.ajax({ | |
url: 'proses.php', | |
type: 'post', | |
data: $('form').serialize(), | |
dataType: 'html', | |
success: function(r) { | |
$('#html-response').html(r); | |
} | |
}) | |
return false; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment