In my web page am using 2 radio buttons & 1 button ,,by default both radio buttons are false,,,then am click the button i got one alert message will come i.e please select any one radio button .........
function check()
{
if(document.getElementById("<%=x.ClientID%>").value=="")
{
alert("please select any one button");
return false;
}
else
{
alert("you enetered"+document.getElementById("<%=x.ClientID%>").value)
return true;
}
}
{
if(document.getElementById("<%=x.ClientID%>").value=="")
{
alert("please select any one button");
return false;
}
else
{
alert("you enetered"+document.getElementById("<%=x.ClientID%>").value)
return true;
}
}
here in this javascript function which ID is used in the place of "x"


Krishna Rajput SinghRank #605 · 4K reputationPosted Jul 16, 2016, 4:46 PM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jul 16, 2016, 10:40 PM EDT