A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
dynamically creating a text box
Joined: Jul 25, 2006
Jul 25, 2006 22:02:00
how to create a text box dynamically when i clicked on some
and i want to place that text box just beside that image.
Author and ninkuma
Joined: Jan 10, 2002
Jul 25, 2006 22:22:00
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
Books by Bear
Joined: May 12, 2005
Jul 25, 2006 23:59:00
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:
subject: dynamically creating a text box
Populating text box based on selected droapdown
Align top of image with adjacent text item
Auto tabbing among text fields created with logic:iterate
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015