Given the following HTML snippet:
<li class="list">
<img src="/assets/img/site/arrow_black.png"/>My List Element<span class="star"></span>
</li>
When I bind a click event to the li
element and also bind a click event to the .star
class, my question is the following:
How do I stop the click event on the li
firing when I click on the star?
My JQuery code looks something along the lines of:
$(".list").click(function() {
//do something
}
$(".star").click(function() {
//do something
}