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 -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -