469,315 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

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 1460
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
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.