I want to add more textboxes depending on need of the user. Can we do it in HTML?
Eg: I want to create something similar to what we have in gmail contacts. If user wants to add more that one phone number he can click on "add" link and new textbox appears on the screen. He if wants to remove that then he can click on "remove" link.
Originally posted by Vivian Josh: I want to add more textboxes depending on need of the user. Can we do it in HTML?
You can explore the innerHTML property of DOM elements, or learn the DOM manipulation API.
If you are going to dive into modifying the DOM dynamically, I definitely recommend adopting either of the jQuery or Prototype libraries which will make such things easier and help shield you from the browser differences. [ February 27, 2008: Message edited by: Bear Bibeault ]