Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. How can i add some text boxes on same form

How can i add some text boxes on same form

Scheduled Pinned Locked Moved Java
javascriptquestion
2 Posts 2 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    How can i add some text boxes through javascript i have a form having some controls already now i wanna add some more controls below existing controls. Pls tell me the solution as i am new to javascript

    M 1 Reply Last reply
    0
    • L Lost User

      How can i add some text boxes through javascript i have a form having some controls already now i wanna add some more controls below existing controls. Pls tell me the solution as i am new to javascript

      M Offline
      M Offline
      Malcolm McMahon
      wrote on last edited by
      #2

      The method of making radical changes in screen contents from javascript (Called Dynamic HTML) is basically to overwrite a chunk of the HTML. But you generally need to replace the whole contents of a particular tag. So you might rewrite the hmtl for your whole form. You do this by setting the "innerHTML" property of the element you're changing the contents of to a string value containing the new HTML code. You can, of course, put in tags just for this purpose, typically I use tags with IDs. If you just have some fields that are only shown sometimes it's generally easier to just mark them hidden in the HTML and use the javascript to change their style.visibility property to vissible.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups