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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -