jquery + populate selectbox with numbers
<p>i want to populate selectbox dynamically with the count available from total number of text boxes,</p>

<p>i.e.</p>

<p>if i have text 2 textboxes then the selectbox should like</p>

<blockquote>
<pre><code>&lt;select&gt;      
&lt;option value="1"&gt;1&lt;/option&gt;      
&lt;option value="2"&gt;2&lt;/option&gt; 
&lt;/select&gt;
</code></pre>
</blockquote>

<p>and when i add a new textbox dynamically i.e third textbox then the one more option should be added dynamically, like..</p>

<pre><code>&lt;select&gt;        
&lt;option value="1"&gt;1&lt;/option&gt;        
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt; 
&lt;/select&gt;
</code></pre>

<p>please guide me with possible approach for this</p>

<p>thanks</p>
