Bug Tracker

Opened 10 years ago

Closed 10 years ago

#14238 closed bug (notabug)

It consoles up to parent level.

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


I used jQuery 1.10.2 i.e CDN url.

I have made "UL LI" tree view and make li clickable to get path but whenever I click on any LI dom it gives all DOM up to its parent. See below code I wrote.

<ul class="root">



<li class="dir1">Dir 1


<li>Sub Dir 1</li> <li>Sub Dir 2</li>


</li> <li class="dir2">Dir 2


<li>Sub Dir 1</li> <li>Sub Dir 2</li>


</li> <li class="dir3">Dir 3


<li>Sub Dir 1</li> <li>Sub Dir 2</li>


</li> <li class="dir4">Dir 4</li>



</ul> <script>

$(document).ready(function () {






Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

Event bubbling, learn it. Ask for help on a forum.

Note: See TracTickets for help on using tickets.