$('document')
is not a valid selector, since there's no document
tag name. You could instead use $(document)
, which'll use the document
element, but that's not needed here. Just use :not()
directly:
$(':not(.reset_btn)').click(function(){
alert('Something');
});
To optimize this further, you should use event delegation:
$(document).on('click', ':not(.reset_btn)', function(){
alert('Something');
});