How to add li to a ul based on the button clicked
<p>I have various.  How do I add a new list based on the button clicked in that particular ul
How to get the ul of the button saved clicked and create and add li to that ul?</p>

<pre><code>&lt;ul id ="list1"&gt;&lt;li&gt;item1&lt;/li&gt;&lt;input type= "Button" id = "test1" value = "Save"&gt;&lt;/ul&gt;
&lt;ul id ="list2"&gt;&lt;li&gt;item11&lt;/li&gt;&lt;input type= "Button" id = "test11" value = "Save"&gt;&lt;/ul&gt;
</code></pre>

<p>the Jquery code is as follows:</p>

<pre><code>   $(document).ready(function(){ 

     $("#list :button").click(function(){ 
         var text = $(this).val();

        if ( text == "Delete") {
           $(this).parent().remove(); 
        }
               if(text =="Save")
               {
                   //How to get the UL of the button saved clicked and create and add li to that UL
               }
   }); 
});​
</code></pre>
