Author
dynamically creating a text box
mouli katta
Greenhorn
Joined: Jul 25, 2006
Posts: 1
posted Jul 25, 2006 22:02:00
0
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: 56168
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.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About 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
subject: dynamically creating a text box