I think this will work:
if (event.target.id <> 'match')
-- Josh
----- Original Message -----
From: "Mitch" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Thursday, August 16, 2007 6:32 PM
Subject: [jQuery] Question about event.StopPropagation()
I am trying to get event bubbling to work right and have this snippet
$("div").click(function(event) {
if (event.target == this) {
$("#text800birds").css( { background: "#EEEEEE", color:
"#FFFFFF"} );
}
});
I would like to change this part
if (event.target == this)
to
if (event.target <> #match)
so that it wont pass the event if the div is #match.
Can you tell me the proper syntax?
Mitch