Bootstrap radio button: Get selected value on submit form

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

I have the next boostrap radio-button:

6条回答
  •  旧时难觅i
    2021-02-04 00:48

    You should set a common "name" to identify the form:

    And to get the value, you can get like this:

    $('input[name=toggle]:checked').val()
    

提交回复
热议问题