By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,693 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

Changing drop down box to text box

P: 7
In my webpage i have dropdown box.
On clicking the link below I want to change the drop down box in my webpage to textbox.
Once user enter data in text box i want to submit the data.
After that again the text box should get revert back to dropdown box.

Pls. suggest.I am totally new to this field...
Oct 14 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
You can either change it dynamically or hide and replace.

If we take the second option, you'll have two objects, a dropdown box and a text box. Keep the text box hidden initially. When you want to show the text box, hide the dropdown (set the style.display property to "none") and replace it with the text box by displaying it at the same position.

If you don't know how to implement this, show your code.
Oct 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.