Finding all LIs that have name="checked"

Posted by nobosh on Stack Overflow See other posts from Stack Overflow or by nobosh
Published on 2010-05-25T17:39:08Z Indexed on 2010/05/25 17:41 UTC
Read the original article Hit count: 154

Filed under:
|

I'm trying to find all LIs with name=checked and hide() them, but this doesn't seem to be working:

    $('li').attr("name","checked").hide();

<li name="unchecked" style="display: inline;"><a href="/">Home</a></li>

Any ideas?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors