Radio button html
get radio button value in java script
<input type="radio" name="mxCard" id="mxcard" data-id="<%=mxcard.MxFormaterCreditCard%>" value="<%=mxcard.MxFormaterCreditCard%>" />
get radio button value in java script
var selectedVal = "";
var selected = $('input[type=radio][name=mxCard]:checked').val();
if (selected) {
// Do something
}
}
Comments
Post a Comment