javascript - How to ignore class in jQuery? -
here simple example did: http://jsfiddle.net/j3rbx/
my purpose: when mouseover input, give me alert. seems fine, when mouseover text has class 'txt', doesn't give me alert. should do?
just add .txt
selector:
$(".omg, .txt").bind("mouseover", function() { alert("i mouseover'ed omg class"); })
setting pointer-events: none;
on .txt
class works.
Comments
Post a Comment