I want to get the selected value from a group of radio buttons.
Here\'s my HTML:
The one worked for me is given below from api.jquery.com.
HTML
option1 option2
JavaScript
var selectedOption = $("input:radio[name=option]:checked").val()
The variable selectedOption will contain the value of the selected radio button (i.e) o1 or o2