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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -