Hello there,
I've been searching on the web and I've as of yet found very little to help
me with my precise problem, perhaps I'm doing something that just can't be
done or perhaps it's just so simple I can't see the wood for the trees.
basically I have some text in a form on my page, and I want this text to
display or not according to a value selected from a drop down box
I've tried using Divs but they distort my table as it seems that you can
only have a div in a row by itself, I've tried using just a font tag and
changing the visibility style, but when I've checked this in NS6 it come
swith an error that the font tag has no properties.
I'm also making a text box apprear and dissapear, and this is working fine
under the same function.
So far I've tried doing this, code-wise, by changing the visibility style
property, and also by changing the colour, but neither way seems to work,
can anyone offer a simple solution to this? here's some code to show what
I've got...
NOTE: EnteredYearB is my textbox, myWord is the id for the Div/Font tag
function checkVal(){
var d=document.form1
if(d.Vocabulary.value=='Between'){
d.EnteredYearB.readOnly=false;
d.EnteredYearB.disabled=false;
d.EnteredYearB.style.visibility='visible';
d.myWord.style.visibility='visible';
d.myWord.style.color='#003399';
}
else{
d.EnteredYearB.value='';
d.EnteredYearB.readOnly=true;
d.EnteredYearB.disabled=true;
d.EnteredYearB.style.visibility='hidden';
d.myWord.style.visibility='hidden';
d.myWord.style.color='#3366CC';
}
}
Cheers,
Al.