I have a webform, where fieldset contains fieldsets. I want to use jquery to select the fieldsets that are not children? how can i do that?
            Asked
            
        
        
            Active
            
        
            Viewed 4,167 times
        
    2 Answers
1
            If the fieldsets you want are a direct child of the form, try:
$('form > fieldset')
See the jQuery Child Selector docs for more info
        Petah
        
- 45,477
 - 28
 - 157
 - 213
 
- 
                    
 - 
                    @david, `$('form').find('> fieldset')` or `$('form').children('fieldset')` – Petah Sep 19 '11 at 03:50
 - 
                    If neither of these work then that might mean the fieldsets you are trying to target aren't direct descendants of the form. Can you post your HTML? – katy lavallee Sep 19 '11 at 17:32