my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes dynamically creating a text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamically creating a text box" Watch "dynamically creating a text box" New topic
Author

dynamically creating a text box

mouli katta
Greenhorn

Joined: Jul 25, 2006
Posts: 1
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.


-Mouli
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
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>.


SCJA, SCJP5.0, SCBCD, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamically creating a text box
 
Similar Threads
Auto tabbing among text fields created with logic:iterate
Calender component
Align top of image with adjacent text item
Javascript
Populating text box based on selected droapdown