if I've got a floating message box and i'm wondering if clicking paragraph text within that box will also register a click on it's parent element in jQuery or if i have to add click listeners for the child elements as well.
update: here's the basic layout:
<div id='msgbox'>
<p>This is the <span>message</span></p>
</div>
Now if i click the text in the <p> or in the <span> will it still trigger as a click on $('#msgbox') ?
update 2: Can I stop this behavior??
update 3: here's the fiddle i've got going: http://jsfiddle.net/MZtbY/ - now is there a way to stop propagation after it reaches a certain level? so clicking the <p> would be ok, but clicking the <span> would do nothing? - sort of like $('#msgbox :nth-child').click(function(e) {e.stopPropagation();});