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

replace a select box with a textbox

100+
P: 178
Hi,

Was just wondering if it was possible to write a function that would replace an existing selectbox with a text box? I know you could use hide.
Aug 27 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
You could use replaceChild on the parent element/node to completely replace it. Would you want to swap it back again later? If so, then you'd be better off hiding the select element and showing the text box.
Aug 27 '08 #2

Post your reply

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