How to validate radio button?
Radio buttton validation?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 8:18 PM EDT
Please refer the below link
http://www.codeproject.com/Questions/421611/Validating-RadioButton-in-asp-net
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 17, 2013, 8:24 PM EDT
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;
}