471,854 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

replace a select box with a textbox

178 100+
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
1 1485
acoder
16,027 Expert Mod 8TB
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.

Similar topics

3 posts views Thread by Miguel J. Jiménez | last post: by
5 posts views Thread by K.Simon | last post: by
1 post views Thread by Tomomichi Amano | last post: by
16 posts views Thread by Ramsin Savra | last post: by
1 post views Thread by Daniel Miller | last post: by
2 posts views Thread by jason | last post: by
1 post views Thread by IanONet | last post: by
5 posts views Thread by xla76 | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.