With the AjaxForm function, we can do it. Please see the example script below :
<script type="text/javascript">
$(document).ready(function() {
$('#submitform').ajaxForm({
target: '#contactform',
success: function() {
$('#contactform').fadeIn('slow');
}
});
});
</script>
#submitform is id from form that used to send a value and #contactform is id from div, where if we click the button submit, the new page will be loaded to div.
Tidak ada komentar:
Posting Komentar