wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes dymamic generate text input field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dymamic generate text input field" Watch "dymamic generate text input field" New topic
Author

dymamic generate text input field

Kan Qiu
Greenhorn

Joined: Nov 26, 2002
Posts: 16
How can I use Javascript to generate text input field base on user selection.
<select name="box">
<option value="1"> add 1 box </option>
<option value="2"> add 2 box </option>
</select>
if add 1 box is selected, I would like to have one more box generated after this dropdown list. if add 2 box is selected, I would have 2 box generated instead of just 1.
please help.


Kan Qiu<p>SCJP<br />SCWCD
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is a rather easy code:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dymamic generate text input field
 
Similar Threads
post form data when slection changed in list
pass a variable in the URl
MySQL query to fill HTML combo box?
Show a hidden text field
working with drop down menus