T
tjonsek
I have two drop down boxes on a form. One feeds the second a list
options based on user selection. With the second drop down, I want code
that displays dynamic text in a <div> based on whatever the user
selects.
So far, it doesn't seem to be firing.
I am only testing the functionality because I have quite a bit of text
to display depending on the users input and want to get it working
first before I bother typing everything.
Here is what I have so far:
(Second drop down box code)
<SELECT id="SubCat" NAME="SubCat">
<Option value="" onChange="ViewComparison();" >Product
Description</option>
</SELECT>
<div id="prodTable">Test</div>
Javascript:
function ViewComparison(){
document.getElementById('prodTable').innerHTML="Good Afternoon";
}
I have spent most of my programming life in asp/vbscript due to my
previous employers standards so I am fairly new to javascript.
Any help is appreciated.
Thanks!
options based on user selection. With the second drop down, I want code
that displays dynamic text in a <div> based on whatever the user
selects.
So far, it doesn't seem to be firing.
I am only testing the functionality because I have quite a bit of text
to display depending on the users input and want to get it working
first before I bother typing everything.
Here is what I have so far:
(Second drop down box code)
<SELECT id="SubCat" NAME="SubCat">
<Option value="" onChange="ViewComparison();" >Product
Description</option>
</SELECT>
<div id="prodTable">Test</div>
Javascript:
function ViewComparison(){
document.getElementById('prodTable').innerHTML="Good Afternoon";
}
I have spent most of my programming life in asp/vbscript due to my
previous employers standards so I am fairly new to javascript.
Any help is appreciated.
Thanks!