I want to display a series of textboxes for additional input depending on the the user’s selection from a drop down list. When option1 is selected, one textbox appears for additional input. Option2 requires 3 textboxes, option3 needs 2 textboxes, option4 and other require one textbox each.
I have pieced together some code from researching other threads and have come up with the code found here: http://jsfiddle.net/zFQf3/
Can anyone please provide direction?
Thank you.
I redid what you had on jsFiddle (http://jsfiddle.net/zFQf3/29/ or http://jsfiddle.net/zFQf3/47/ if you want a class based solution), but I am not sure how to use that site, so I don’t know if it saved. I will copy and paste it here too just in case.
I modified your HTML to this:
I added some CSS just for visibility sake:
I modified your JS to this:
I think that does what you want.