Connecting Tech Pros Worldwide Help | Site Map

replace a select box with a textbox

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 27th, 2008, 11:25 AM
Familiar Sight
 
Join Date: Jun 2008
Posts: 161
Default replace a select box with a textbox

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.
Reply
  #2  
Old August 27th, 2008, 11:41 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,257
Default

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.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.