I have the following div:
<div class='amazingmenu' id='menupull'>
<img src='images/down.png' width=20 height=20 align='right'/>
<div id='menupullhideme'>click the arrow to read the rest!<br /></div>
more jokes on <a href='http://www.amazingjokes.com'>amazingjokes.com</a>
</div>
clicking on a DIV or image should call some function in jQuery:
$('#menupull').click( function() {
alert( 'pullmenu clicked' );
});
I want to make it only warn the message when I click on a DIV or image, but not a link. Tried this:
$('#menupull:not(a)').click( function() {...
but it didn’t work. Any ideas?
source
share