jQuery: find selector only works with IDs and not classes ?
- by Patrick
hi,
does the "find" method work in jQuery with classes selectors ?
For example:
var tagsDiv = $(".node-form .taxonomy-super-select-checkboxes").find("div.fieldset-wrapper");
doesn't work. But
var tagsDiv = $(".node-form .taxonomy-super-select-checkboxes").find("div#edit-taxonomy-tags-1-wrapper");
works. This is the html code:
...
<fieldset class=" collapsible">
<legend class="collapse-processed">
<a href="#">Tags
<span class="form-required" title="This field is required.">*</span>
</a>
</legend>
<div class="fieldset-wrapper">
<div class="form-item" id="edit-taxonomy-tags-1-wrapper">
<label for="edit-taxonomy-tags-1">Enter New Tags: </label>
</div>
</div>
</fieldset>
...
thanks