jquery get value of radio input 1

jquery get value of radio input

$('input[name="name_of_your_radiobutton"]:checked').val();

Here is what the above code is Doing:
1. We select the input element with the name “name_of_your_radiobutton”
2. We filter the selection to only include the checked radio button
3. We get the value of the checked radio button

Similar Posts