How do you use jQuery filter() on an attribute that is not a class or id
Posted
by Ankur
on Stack Overflow
See other posts from Stack Overflow
or by Ankur
Published on 2010-04-05T13:10:28Z
Indexed on
2010/04/05
13:13 UTC
Read the original article
Hit count: 271
I want to filter based on an attribute called "level".
Where I have written -- something here -- I don't know what to do to reference the level attribute. If it was an id attribute I would do #idName if it was a class I would do .className.
I am not sure what to do to select the level attribute.
$(".myClass").filter(--something here to reference the level attribute --).remove();
© Stack Overflow or respective owner