My JQuery function looks like, where a$RadioBtn is the one only radio button list on my form:
IR.Web.cRptCtl.prototype.getSelectedRadioValue = function(a$RadioBtn){
//Here I want to return a$RadioBtn's selected value
}
How do I determine the selected value?
If
a$RadioBtnis a JQuery object of the radio elements, use:This will return a JQuery object, representing the selected radio input field. If you want to perform DOM operations on it, use the
.get(0)method to get the DOM element.Example: