Hi, maybe this is a stupid question, but I can't find a solution.

I have different nested lists

<ul>
<li id="id_1">
  <ul>
    <li id="id_10"></li>
  </ul>
</li>
</ul>

And this piece of code:

$('ul li').bind('click', function() {
  alert(this.id);
});

When I run this code and I click inside the nested li I got 2 alerts
"id_10" and "id_1".
What I can do to block the click event to the first li clicked?

Thank you

Reply via email to