jquery directory tree
<p>I'm using jquery for listing directory's and I would like to inplement delete check box in it and delete submit buton by every directory on the tree . How to do that? 
I'm using this code below.</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"&gt;
&lt;head&gt; 
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt; 
&lt;title&gt;jQuery Drop Down Menu&lt;/title&gt; 

&lt;!-- CSS For The Menu --&gt; 
&lt;link rel="stylesheet" href="stylee.css" /&gt; 

&lt;/head&gt; 
&lt;body&gt; 

&lt;!-- Menu Start --&gt; 
&lt;div id="jQ-menu"&gt; 

&lt;?php
error_reporting(0);
    $path = "store/".$diro."/";

    function createDir($path = '.')
    {   
        if ($handle = opendir($path)) 
        {
            echo "&lt;ul&gt;";

            while (false !== ($file = readdir($handle))) 
            {
                if (is_dir($path.$file) &amp;&amp; $file != '.' &amp;&amp; $file !='..')
                    printSubDir($file, $path, $queue);
                else if ($file != '.' &amp;&amp; $file !='..')
                    $queue[] = $file;
            }

            printQueue($queue, $path);
            echo "&lt;/ul&gt;";
        }
    }

    function printQueue($queue, $path)
    {
        foreach ($queue as $file) 
        {
            printFile($file, $path);
        } 
    }

    function printFile($file, $path)
    {
        echo "&lt;li&gt;&lt;a href=\"".$path.$file."\"&gt;$file&lt;/a&gt;&lt;/li&gt;";
    }

    function printSubDir($dir, $path)
    {
        echo "&lt;li&gt;&lt;span class=\"toggle\"&gt;$dir&lt;/span&gt;";
        createDir($path.$dir."/");
        echo "&lt;/li&gt;";
    }

    createDir($path);
?&gt;

&lt;/div&gt; 
&lt;!-- End Menu --&gt; 


&lt;!-- Add jQuery From the Google AJAX Libraries --&gt; 
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"&gt;&lt;/script&gt;


&lt;!-- jQuery Color Plugin --&gt; 
&lt;script type="text/javascript" src="jquery.color.js"&gt;&lt;/script&gt; 

&lt;!-- Import The jQuery Script --&gt; 
&lt;script type="text/javascript" src="jMenu.js"&gt;&lt;/script&gt; 

&lt;/body&gt; 
&lt;/html&gt;
</code></pre>
