File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 1001
    
    2
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: 15376
    
    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: 1001
    
    2
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://aspose.com/file-tools
 
subject: How to create dynamic textboxes based on dropdown selection