1
116
I am attempting to use the below script, but I notice that the 'onclick'
requires 2 clicks. Why 2 clicks? I'm guessing select is a seperate click?
<script type="text/javascript">
function doctypeno()
{
with (document.forms[0])
{
var typeno; //case variable
var hdnt;
hdnt = "";
typeno = dcl_TYPE.value;
hdnt = hdnTYPE.value;
T2.value = hdnt;
switch (typeno)
{
case '':
hdnTYPE.value = "";
break;
case '00':
hdnTYPE.value = "";
break;
case '01':
hdnTYPE.value = "P ";
break;
case '02':
hdnTYPE.value = "F ";
break;
case '03':
hdnTYPE.value = "WI";
break;
}
}
}
</script>
David
requires 2 clicks. Why 2 clicks? I'm guessing select is a seperate click?
<script type="text/javascript">
function doctypeno()
{
with (document.forms[0])
{
var typeno; //case variable
var hdnt;
hdnt = "";
typeno = dcl_TYPE.value;
hdnt = hdnTYPE.value;
T2.value = hdnt;
switch (typeno)
{
case '':
hdnTYPE.value = "";
break;
case '00':
hdnTYPE.value = "";
break;
case '01':
hdnTYPE.value = "P ";
break;
case '02':
hdnTYPE.value = "F ";
break;
case '03':
hdnTYPE.value = "WI";
break;
}
}
}
</script>
David