I’m capturing all the clicks in my “a” elements with this:
$("a").click(function(e){....});
I want to know if it’s possible to discard some events depending on some variable.
For example..
If href="http://www.google.es" then alert("google.es")
else if href="http://www.google.com" then do not handle the event and let the browser do whatever it has to do.
I don’t know if I’ve explained it very well…
Fiddle Demo: http://jsfiddle.net/maniator/5XdkV/