jQuery filter() - filtering on multiple attributes
- by Ankur
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();