How can I stop the trigger of the outer div event when I click the inner element? And all the events are bound to $(document.body),so i think i should not stop event stopPropagation. When I click $(".logLi"), I just want to trigger the inner ele event. What is wrong with my code and how can i solve the problem? here is my code
<div class="clomn">
<div class="logLi">
<span>aaaaaaa</span><em>bbbbbb</em>
</div>
</div>
$(document.body).on("click", ".clomn .logLi", function(e) {
console.log("inner");
})
$(document.body).on("click", ".clomn", function(e) {
console.log("outer")
})