TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rameshyadav Medaboina
NA
94
23.5k
which ID is used in javascript function
Jul 16 2016 5:20 PM
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 .........
<asp:RadioButton ID="rdb1" runat="server" Text="option1" GroupName="group1" onclick="check();" />
<asp:RadioButton ID="rdb2" runat="server" Text="option2" GroupName="group1" onclick="check();"/> <br />
<asp:Button ID="btn1" runat="server" Text="submit" OnClick="btn1_Click" /><br />
<asp:Label ID="lbl1" runat="server" />
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;
}
}
here in this javascript function which ID is used in the place of "x"
Reply
Answers (
2
)
find datatable columnname by its index in c#
Meters of Distance to Kilometers?