Hey everyone,

I have a question that I'm hoping someone, anyone, can answer... ...I want to create a drop-down menu with the values 1, 2, 3, 4, 5,..., n in it - and I want to be able to select one of those options from the drop down menu and have that many textboxes appear on screen...

In other words, UserA hits my drop down menu and selects 5, as a results 5 textboxes appear on the screen...

Can someone point me into the right direction, I'd really appreciate it?

Recommended Answers

All 2 Replies

So to do this, you will need to know when the value of the combo box has changed, so look at the various events associated with combo boxes.

On a particular event, you will then need to call some javascript function which will then add your textboxes.

Does that help?

Use onChange event to write your event-handler for drop-drown-menu

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.