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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -