This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

run time control change  RSS feed

 
ravindra maddi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!