Connecting Tech Pros Worldwide Help | Site Map

replace a select box with a textbox

  #1  
Old August 27th, 2008, 12:25 PM
Familiar Sight
 
Join Date: Jun 2008
Posts: 164
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.
  #2  
Old August 27th, 2008, 12:41 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,528
Provided Answers: 12

re: replace a select box with a textbox


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inheriting from a text box..... UJ answers 5 February 28th, 2006 12:35 PM
Recommendations for combo box control Hans Merkl answers 7 November 24th, 2005 09:25 AM
TextBox Find and Replace ! Ramsin Savra answers 16 November 15th, 2005 09:07 PM
How to implement mm/dd/yyyy format for textbox? dyw55a answers 6 July 23rd, 2005 09:32 PM