jquery changing the dynamically created list
<p>I am creating using Jquery some lists.
There is 1 text boxes. user gives some data.
when ever user does press Button , that data is copied and added to the div.</p>

<pre><code>$("#Add").click(function(){
   var val = $('[name=Variablename]').val();
     var masterHTML = '&lt;input type="checkbox" name="'+val+'"&gt;'+val+'   '+val+'  '+'&lt;br&gt;';
                $("#main").append( masterHTML);
          });   
</code></pre>

<p>now the list can be big say example:</p>

<pre><code>sampletext1
sampletext2
sampletext3
sampletext4
sampletext5
sampletext6
</code></pre>

<p>next to each there will be a check button.
as this is all dynamic data.
so when a user checks say sampletext1. how can I get that data.
basically I am looking at getting that data display on the text box so that user can update sampletext1 to sampletext1update and post it back.</p>

<p>how can I do that .
I am not using tables (or) forms. just div and adding text with check button </p>

<p>the div main is :</p>

<pre><code>&lt;div id="main"&gt;
&lt;/br&gt;
&lt;/div&gt;
</code></pre>
