M
Mark Smith
I have some nested div elements like this:
<div id="1" onclick="dostuff(this);">...
<div id="2" onclick="dostuff(this);">...
</div>
</div>
However when the inner div element is clicked. The outer divs onclick
fires immediately after. Is it possible to suppress this? I've tried
appending ";return false;" to the onclick events, but that didn't
work.
I don't want to go down the road of having to maintain a convoluted
set of flags, any suggestions?
Thanks
<div id="1" onclick="dostuff(this);">...
<div id="2" onclick="dostuff(this);">...
</div>
</div>
However when the inner div element is clicked. The outer divs onclick
fires immediately after. Is it possible to suppress this? I've tried
appending ";return false;" to the onclick events, but that didn't
work.
I don't want to go down the road of having to maintain a convoluted
set of flags, any suggestions?
Thanks