1

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?

David
  • 2,691
  • 7
  • 38
  • 50

2 Answers2

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
1

You could use the direct descendent selector: form > fieldset.

katy lavallee
  • 2,741
  • 1
  • 28
  • 26