This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes run time control change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "run time control change" Watch "run time control change" New topic

run time control change

ravindra maddi

Joined: Oct 20, 2001
Posts: 6
I have a situation that needs to change my text box to combo box based on input entered.
If the corresponding value has only one value than I am going to display in text box else in combo box.
Can any one give me a hint how to solve this situation using java script.
Thanks in advance.
manav kher
Ranch Hand

Joined: Nov 21, 2000
Posts: 98
use divs
<div id="div0" name="div0"></div>
and in the javascript
document.all.layers.div0.innerHTML = '<input type="text"...
do the same for a combo box
check the syntax but i hope u get the essence of what i am trying to say here
wood burning stoves
subject: run time control change
It's not a secret anymore!