<li id='click'>".$folderList[$ind]."</li>
<script> var handleAdd = function (event) { var $this = $(this); if ($this.children('ul').length > 0) { $('<li></li>').appendTo($this.children('ul')); } else { $('<ul><li></li></ul>').appendTo($this); } event.stopPropagation(); }; $(document).on('click', 'li', handleAdd); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)