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"

Francis SusaimichaelPosted Jul 17, 2016, 2:40 AM
Krishna Rajput SinghPosted Jul 16, 2016, 8:46 PM