jQuery filter() - filtering on multiple attributes
Posted
by Ankur
on Stack Overflow
See other posts from Stack Overflow
or by Ankur
Published on 2010-04-08T08:46:25Z
Indexed on
2010/04/08
9:03 UTC
Read the original article
Hit count: 152
I want to filter based on two attributes, the first is id and the second is called level
i.e. id="someId" level="someLevel"
Shouldn't this code do the trick ... it doesn't seem to work.
$(".someClass").filter("#"+id, "[level='"+level+"']").someAction();
© Stack Overflow or respective owner