I’ve got a hidden control inside a repeater. How can I access this from JavaScript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you using JQuery? This can be easily done by the following:
Which scours the entire repeater; because each item doesn’t render a wrapper around it (a div or a table, for example), the find does an entire check of the HTML tree. Otherwise, you’d have to loop through each element, or wrap each item with a DIV, and access the childNodes collection of that DIV, and it would be more of a pain without JQuery, but very possible.
HTH.