• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamically creating a text box

 
mouli katta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to create a text box dynamically when i clicked on some image and i want to place that text box just beside that image.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create it as part of the page, hide it with CSS and then reveal it at the appropriate time. Or you can truly create it on-the-fly with one of innerHTML or DOM manipulation.
 
reubin haz
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you could use an empty <div> with some id, at the moment you wanna show the text box, place them in as the value of <div>.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic