html - Once form is submit on the same page, its not submitting again using jquery until i refresh page -


i trying submit form on same page using jquery. when form submitted , again try submit failed. , when refresh page , submit works fine. whats problem?

$('#csvfile').change(function(){     $("#senderinfoform").submit(); }); 

this code use trigger submit form in .change()

$('#csvfile').on('change',function(){     $('#senderinfoform').trigger('submit'); }); 

be sure #senderinfoform form id not submit button id .. , submit form

$('#senderinfoform').on('submit',function(){    // code here }); 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -