aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes How to create dynamic textboxes based on dropdown selection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to create dynamic textboxes based on dropdown selection" Watch "How to create dynamic textboxes based on dropdown selection" New topic
Author

How to create dynamic textboxes based on dropdown selection

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 902
Hello everyone,
my problem is: I want to show textboxes on a form as the dropdown selection, i mean if anyone selected 5 in the dropdown, 5 textboxes should display below.
can anyone tell me how can i do this using js??
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
document.createElement and appendChild() are what you need. OR if there is a limited number of selections,, you can show and hide.

Eric
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 902
Eric Pascarello wrote:document.createElement and appendChild() are what you need. OR if there is a limited number of selections,, you can show and hide.

Eric



Yes, i got it.
Thank you..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to create dynamic textboxes based on dropdown selection
 
Similar Threads
Displaying the input fields on selection
Struts 1.2 array validation
how to add multiple selection from dropdown list
html:select with multiple = true????
Associating form fields with Vectors/Beans