Thanks, I think I get that part.
I'm having trouble understanding how to affect one with the other.
In the option tags of the drop down I put
Code:
onchange="enableother()"
then I made a simple function to "allegedly" switch the value of the input field
Code:
function enableother()
{
if (document.formname.selectname == 'other')
{
document.formname.fieldname.disable = false
}
else
{
document.formname.fieldname.disable = true
}
}
of course the whole thing just ignores me and I'm not entirely sure why. Sorry for being such a n00b but I really don't understand the logic behind JavaScript yet.
Anyone know what I'm missing and why?
Last edited by reli4nt : 05-02-2006 at 04:08 PM.
|