Hi Guys,
I have a drop down box that contains different IT asset types eg. mouse monitor and software etc. entry which was retrieved from a db table. How can I code that If the option selected from the drop-down menu is software, enable the no. of licenses text box, if not, disable it.
below are a few i tried but didn't work:
<SCRIPT language=javascript>
function BOHAREA ()
{
if (TIOFORM.DropdownList4.selectedIndex != 'Waiting on BoH area')
TIOFORM.DropdownList6.disabled = false;
else
TIOFORM.DropdownList6.disabled = true;
}
</SCRIPT>
<SCRIPT language=javascript>
function BOHAREA ()
{
if (TIOFORM.DropdownList4.selectedIndex.text != 'Waiting on BoH area')
TIOFORM.DropdownList6.disabled = false;
else
TIOFORM.DropdownList6.disabled = true;
}
</SCRIPT>
<SCRIPT language=javascript>
function BOHAREA ()
{
if (TIOFORM.DropdownList4.vaule = 'Waiting on BoH area')
TIOFORM.DropdownList6.disabled = false;
else
TIOFORM.DropdownList6.disabled = true;
}
Thanks Guys
I have a drop down box that contains different IT asset types eg. mouse monitor and software etc. entry which was retrieved from a db table. How can I code that If the option selected from the drop-down menu is software, enable the no. of licenses text box, if not, disable it.
below are a few i tried but didn't work:
<SCRIPT language=javascript>
function BOHAREA ()
{
if (TIOFORM.DropdownList4.selectedIndex != 'Waiting on BoH area')
TIOFORM.DropdownList6.disabled = false;
else
TIOFORM.DropdownList6.disabled = true;
}
</SCRIPT>
<SCRIPT language=javascript>
function BOHAREA ()
{
if (TIOFORM.DropdownList4.selectedIndex.text != 'Waiting on BoH area')
TIOFORM.DropdownList6.disabled = false;
else
TIOFORM.DropdownList6.disabled = true;
}
</SCRIPT>
<SCRIPT language=javascript>
function BOHAREA ()
{
if (TIOFORM.DropdownList4.vaule = 'Waiting on BoH area')
TIOFORM.DropdownList6.disabled = false;
else
TIOFORM.DropdownList6.disabled = true;
}
Thanks Guys