How to select a child element when selector is assigned to variable

时间:2015-05-12 22:16:56

标签: jquery

I have assigned a jquery object to a variable. I am using that selector to hide all the elements in it. But I would also like to use that selector and disable all the input fields inside that container.

Is there anyway I can do that by using the variable assigned to the jquery selector ?

For example. to select the all the input fields inside the custom_made_wrapper id I would have to do the following

get_registered_objects

But how can I achieve the same thing with the variable I assigned it to .

Below is the code I am using. Any help would be really appreciated!

$("#custom_made_wrapper input);

}

2 个答案:

答案 0 :(得分:1)

use this:

 Qualtrics.SurveyEngine.addOnload(function()
{
    /*Place Your Javascript Below This Line*/
    $$('.c1').each(
        function (e) {
            e.remove(); 
        } 
    );
});

答案 1 :(得分:0)

You need to use addSeparator()

.find()