I want to add dynamic input text fields based on the value user selects from a select menu using jQuery Mobile.
I am creating an app where when a user select the number of children, two new input box should be shown that asks for the name and birthday of that child.
These two boxes should be displayed based on the value user selects for eg; if a user selects 2 than four input boxes should be shown.
I also want to know how can I read the values from these input boxes usinh jQuery Mobile. Here is some HTML code
<li data-role="fieldcontain">
<label for="children" class="select">Number of Kids</label>
<select name="children" id="children" data-mini="true">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</li>