selector - Jquery - Trying to figure out how to find a certain class then name -- and then do something with them -
i'm trying figure out how find class name within div name, in same div. i'm having trouble finding besides parent/child, or maybe i'm off-base. i'd pick out each of these , add how many there this, total. thanks.
try this:
var items = $(".<class-name>[name='<element-name>']", "#idofdiv"); alert(items.length);
e.g:
var items = $(".someclass[name='somename']", "#interesteddiv"); //if div should identified different selectors replace #intereseddiv other selector. alert(items.length);
Comments
Post a Comment