(Proabably simple) JQuery problem

Hi,

I’ll be quick as this is probably simple. I have 2 types of list items, one with and one without a class. I won’t know what the class is. How can I select only the list items with a class. Would hasClass work? $(‘li’).hasClass().hide();

Thanks,
Rhys

$(‘li[class]’)

:slight_smile:

Knew it would be that simply. Thanks.