Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<head>
<script language="javascript">
function showHide(selList){
if(selList.value == "show"){
document.myForm.list2.style.display = "block";
}
else{
document.myForm.list2.style.display = "none";
}
}
</script>
</head>
<body>
<form name="myForm">
<select name="list1" onchange="javascript:showHide(this)">
<option value="show">Show</option>
<option value="hide">Hide</option>
</select>
<br>
<select name="list2">
<option value=1>Option 1</option>
<option value=2>Option 2</option>
<option value=3>Option 3</option>
</select>
</form>
</body>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showHideOtherList()
{
var formObj = document.forms['myForm'];
formObj.otherList.style.display = formObj.showHideList[formObj.showHideList.selectedIndex].value;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="myForm">
<SELECT NAME="showHideList" onChange="showHideOtherList();">
<OPTION VALUE="block">Show other list</OPTION>
<OPTION VALUE="none">Hide other list</OPTION>
</SELECT>
<BR><BR>
<SELECT NAME="otherList">
<OPTION>Option 1</OPTION>
<OPTION>Option 2</OPTION>
<OPTION>Option 3</OPTION>
</SELECT>
<BR><BR>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi nec lectus. Ut condimentum. Maecenas non wisi et justo adipiscing porttitor.
</FORM>
</BODY>
</HTML>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showHideOtherList()
{
var formObj = document.forms['myForm'];
document.getElementById('showHideDIV').style.display = formObj.showHideList[formObj.showHideList.selectedIndex].value;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="myForm">
List Box 1: <SELECT NAME="showHideList" onChange="showHideOtherList();">
<OPTION VALUE="block">Show other list</OPTION>
<OPTION VALUE="none">Hide other list</OPTION>
</SELECT>
<BR><BR>
<DIV ID="showHideDIV">
List Box 2: <SELECT NAME="otherList">
<OPTION>Option 1</OPTION>
<OPTION>Option 2</OPTION>
<OPTION>Option 3</OPTION>
</SELECT>
</DIV>
<BR><BR>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi nec lectus. Ut condimentum. Maecenas non wisi et justo adipiscing porttitor.
</FORM>
</BODY>
</HTML>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function dispenduser()
{
var formObj = document.forms['chsreport'];
if (formObj.reportty[formObj.reportty.selectedIndex].value == 2)
document.getElementById('showHideRow').style.display = 'block';
else
document.getElementById('showHideRow').style.display = 'none';
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="chsreport">
<table>
<tr>
<td class="bold_bodytext">Type of Report</td>
<td>
<select name="reportty" size="1" onChange="dispenduser();">
<option value="0">Select a Report</option>
<option value="1">Reseller Sales by Vendor</option>
<option value="2">Reseller Sales by End User</option>
<option value="3">Vendor Sales by Product</option>
</select>
</td>
</tr>
<tr id="showHideRow">
<td align="left" bgcolor="#C0C0C0" class="bold_bodytext">End User</td>
<td>
<select name="enduser" size="1" >
<option value="0">Select this option</option>
<option value="abc">ABC</option>
<option value="xyz">XYZ</option>
</select>
</td>
</tr>
</table>
</FORM>
</BODY>
</HTML>