chris_huh wrote:
> I have a combo box whose values change depending on the value selected
> in the dropdown menu beforehand. Essentially the drop down has
> categories and the combo box are the actual topics.
>
> That all works fine but know i need to find a way to show some text,
> probably in a DIV, that is different for each of the values in the
> combo box.
> I have found a script that almost does this but it cannot work with the
> combo box being changable.
>
> Any one know how to do this?
// Make a text node:
NewText = document.createTextNode(This_Is_My_Text_Variable+" or literal
text");
// Put it into div by id
document.getElementById(DivObjectID).appendChild(N ewText);
hth
If you used my system it would be half the code:
// Put text in div
PutIn($text("some text goes in here"), $(DivObjectID));
http://darwinist.googlepages.com/htmldesktop.html