jQuery Finding the first li without a class

Hi all,

I have the following

$(‘.eventsMPH’).find(‘li.comingUp:first’).attr(‘id’);

This gives me the first <li> with a class of ‘comingUp’. However how do I get the first <li> with a class of ‘comingUp’ BUT without a class of ‘clone’

Cheers

Try this


$('.eventsMPH').find('li.comingUp:first').not('.clone').attr('id');

Try this

$('.eventsMPH').children('li:first').attr('id');