Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Access all controls within a Panel.

Posted on 2009-04-29
Medium Priority
Last Modified: 2012-05-06
Hi Experts,

I am new to JQuery. Need to access all the controls within a Panel on client side.

I have an ASP Panel, in which radiobuttons will be created dynamically. I do not have names of those controls to specify in javascript, but I will know the pattern i.e. all names will be specified as rblEmployee_1, rblEmployee_2, etc.

I need to loop through all these controls and perform some action on controls in another panel on same page. Only if I can I loop through/access controls within a specific panel, my problem should be solved.

Question by:expertsoul

Accepted Solution

cdaugustin earned 1000 total points
ID: 24265724

how about if you add a specific css class name thats shared through all those controls and then you do a

$(".sharedClassNameHere").each(function () {
//do something for each matched elem

Assisted Solution

prokvk earned 1000 total points
ID: 24281239
Here's the selector that should do the trick for you:


Open in new window

LVL 12

Author Closing Comment

ID: 31576207
Sorry I couldn't really work with JQuery, due to lack of time and not having enough knowledge at the moment. I completed the task using JavaScript.
Thanks for the help. I will post some comments if able to test this out.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question