javascript - e.preventDefault(); & then continue to submit and post form -
ok firefox not letting registering onclick event...so have use e.preventdefault(); problem submitting (post) vars form , result page cannot continue reload.....
how can work around this?
$(document).ready(function(){ $( "#submit" ).click(function(e) { e.preventdefault(); $.post() .done(function( data ) { //here need disable e.preventdefault(); , carry on & post submission normal.... }); }); })
try this:
.done(function( data ) { $('#formid').submit(); // submit form halted e.preventdefault(); });
Comments
Post a Comment