$('#foo').click but NOT $('#foo a').click
HTML:
<div id ='foo'..>
<a></a>
<a></a>
<a></a>
...etc..
</div>
JS:
$('#foo').click( do this stuff) [
BUT NOT if the click is on contained <a>]
I am looking for a conditional click or something.
I tried doing switches on $('#foo a').click( throw a switch function) but it just doesn't work.
Anybody got any working code that can help me differentiate a contained anchor click from the div that contains the anchor click?
Any help much appreciated because I am steaming a little on this one...
thanks in advance
TBTS