jQuery prevent default, form submit twice -
i want prevent form submit twice after changing select box. tried use e.preventdefault(), makes no difference.
$(document).ready(function() { $(document).on("change","#select1", function(e){ e.preventdefault(); $("#form1").submit(); }); });
the form won't submit twice code, does'nt prevent form submitting either, prevents change event on select, element , event binding to.
Comments
Post a Comment