Monday, September 8, 2014

Submit Without Refresh Page

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.form.js" type="text/javascript"></script>
<script src="jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">
  $('document').ready(function(){
$('#add_frm_jurnal').validate({                  
                   submitHandler: function(form){
                      $(form).ajaxSubmit({ target: '#tampilanform', success: function() {alert('ok'); } });
                    }
             })
  });
</script>

No comments:

Post a Comment