Access all controls within a Panel.

Posted on 2009-04-29
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
    LVL 5

    Accepted Solution


    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
    LVL 5

    Assisted Solution

    Here's the selector that should do the trick for you:


    Open in new window

    LVL 12

    Author Closing Comment

    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

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
    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…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now