wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "run time control change" Watch "run time control change" New topic
Author

run time control change

ravindra maddi
Greenhorn

Joined: Oct 20, 2001
Posts: 6
Hello,
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
if(isTextBox){
document.all.layers.div0.innerHTML = '<input type="text"...
else
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
-manav
 
Consider Paul's rocket mass heater.
 
subject: run time control change