Bootstrap radio button: Get selected value on submit form

后端 未结 6 1568
春和景丽
春和景丽 2021-02-04 00:20

I have the next boostrap radio-button:

6条回答
  •  执笔经年
    2021-02-04 00:45

    In the form submit handler use the :checked selector

    var filterDay = $('#filterDay input:radio:checked').val()
    

提交回复
热议问题