jQuery: find selector only works with IDs and not classes ?
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-04-26T13:28:04Z
Indexed on
2010/04/26
13:33 UTC
Read the original article
Hit count: 291
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
© Stack Overflow or respective owner