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

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -