How to Submit Form on Select Change

后端 未结 7 842
情深已故
情深已故 2020-12-18 20:07

I have the following form. I\'d like it to be submitted automatically via jQuery when the user makes a selection, without needing to press the submit button. How do I do thi

7条回答
  •  情深已故
    2020-12-18 20:44

    even you can do this one:

    $(document).ready(function() {
       $('#cars').on('change', function() {
         $('#submit').click();
    
       });
    });
    

提交回复
热议问题