how to validate radio button?
Radio buttton validation?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Jul 18, 2013, 12:24 AM
in javascript:
function selectRadioButton()
{
var y=document.getElementById("<%=rbyes.ClientID%>");
var n=document.getElementById(""<%=rbno.ClientID%>");
if(y.checked==false && n.checked==false)
{
alert(Please select Yes/No");
return false;
}
return true;
}
Iftikar HussainPosted Jul 18, 2013, 12:18 AM
Please refer the below link
http://www.codeproject.com/Questions/421611/Validating-RadioButton-in-asp-net
Regards,
Iftikar