Jquery submit select form when option is selected

前端 未结 1 1425
我在风中等你
我在风中等你 2021-01-24 12:41

I have a select, with a long list, in which i can search it, with select2 jquery pluing.

my select:

 @using (Html.BeginForm(\"ProjectList\", \"Client\",          


        
相关标签:
1条回答
  • 2021-01-24 12:59

    If you want to submit the form after you change the select option do:

    $('.selectpicker').on('change', function () {
       $(this).closest('form').submit();
    });
    
    0 讨论(0)
提交回复
热议问题