Click here to Skip to main content
15,741,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can Any One Tell Me how to set clientidmode in radiobuttonlist control.

As Problem is I used master page and the page which Inheritted it require javascript / jquery.
So to use radiobuttonlist control id I have to use it's ID, which is only possible if ClientIDMode = "Static".

Any Idea How To do it, or snippet is greatly appreciated


Thanks In Advance
Posted
Updated 19-Apr-14 2:58am
v2
Comments
[no name] 19-Apr-14 8:55am    
http://www.google.com/search?q=ClientIDMode

1 solution

You can get the element by reading its ClientID.
JavaScript
var radioButtonList = document.getElementById('<%=radioButtonListID.ClientID%>')(
 
Share this answer
 
Comments
binadi007 19-Apr-14 13:21pm    
And in Jquery?
$('#' + '<%=radioButtonListID.ClientID%>');

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900