Search code examples
jqueryselectorfieldset

how to using jquery to select filedsets that are not under a fieldset?


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?


Solution

  • If the fieldsets you want are a direct child of the form, try:

    $('form > fieldset')
    

    See the jQuery Child Selector docs for more info