E Online Support - Free Software Download
how to create multiple textboxes
Multiple textboxes
Jeetender
Answer
1

Multiple textboxes
<script type="text/javascript">
function set_child()
{
var x = document.getElementById("child").selectedIndex;
d="<br>";
for(i=1; i<=x; i++)
{
	d=d+"<div class='text_07' style='padding:3px'>Enter Child's Age <input type='text' class='required' name='child"+i+"' size='2' style='padding:5px'></div>";	
}

document.getElementById("child_data").innerHTML=d;
}
</script>


<html>
<body>
<form method=post>
<select name="child" id="child" style="height:30px; width:50px;padding:5px;" onchange="set_child()">
                           
                                <?php for($i=0;$i<=9;$i++){ ?>
                                <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                                <?php } ?>
                              </select>
</form>
</body>
</html>
Question*:
Description*:
Script:
Related To:
 PHP    HTML    CSS    JAVASCRIPT    JQUERY   
 AJAX    WINDOWS    GAMES    DRIVERS    MAC   
 LINUX    MOBILE    GADGETS   
Security Code:
8610
Enter Security Code:
 
Facebook   Linkedin   Skype   Twitter