S
Steve Bishop
Could someone tell me the syntax for using "else' to check the value of
my txtName1 value if its not "Size Mix". If it is not size mix I want to
hide the table "Table2" and show the other controls I hid. Help
appreciated. Thanks.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function showtable(){
var myform1 = document.form1
var myform2 = document.form2
if (myform1.txtName1.value =="Size Mix")
document.getElementById("tn3").style.visibility="hidden"
document.getElementById("but1").style.visibility="hidden"
document.getElementById("Table2").style.visibility="visible"
}
</SCRIPT>
</HEAD>
<BODY onLoad="showtable()";>
my txtName1 value if its not "Size Mix". If it is not size mix I want to
hide the table "Table2" and show the other controls I hid. Help
appreciated. Thanks.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function showtable(){
var myform1 = document.form1
var myform2 = document.form2
if (myform1.txtName1.value =="Size Mix")
document.getElementById("tn3").style.visibility="hidden"
document.getElementById("but1").style.visibility="hidden"
document.getElementById("Table2").style.visibility="visible"
}
</SCRIPT>
</HEAD>
<BODY onLoad="showtable()";>