I’m trying to use the click event on some li’s except those ones that have the class .title. This is what I’ve tried and can’t get it to work:
$('.order_list li:not(.title)').click(function() {
According to the jQuery api not-selector manual, it should work… but it doesn’t http://api.jquery.com/not-selector/
Update
Ok, so indeed the code it seams that was working…. it was a html issue. Thanks any way for the great answers
you can try:
your code should work, i think markup is the culprit:
http://jsbin.com/ajegog/2/