hankknight
asked on
jQuery: Select element where class NOT xyz
How can I select an element using find() only if the class is NOT xyz?
$('.featured>span').find('a CLASS NOT .xyz ').click(function() { alert(123) });
$('.featured > span').not('.xyz ').click(function() { alert(123) });
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Test page : http://jsfiddle.net/GGfUa/ 1/