This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]