File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: run time control change
It's not a secret anymore!