i want to populate selectbox dynamically with the count available from total number of text boxes,
i.e.
if i have text 2 textboxes then the selectbox should like
<select> <option value="1">1</option> <option value="2">2</option> </select>
and when i add a new textbox dynamically i.e third textbox then the one more option should be added dynamically, like..
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
please guide me with possible approach for this
thanks
Check-it Out:
JQUERY:
HTML:
CLICK HERE TO SEE THE DEMO