Hi Team,
I am using this code to try and check if any of 8 textbox values = 2 and if so update a textbox with the letter Y and if not update with the letter N
However it doies not seem to be working could someone please have a look and let me know what I am doing wrong please
Regards
Paul
I am using this code to try and check if any of 8 textbox values = 2 and if so update a textbox with the letter Y and if not update with the letter N
Code:
<script language="JavaScript">
<!--
function CheckFail()
{
if ( document.Entry.Check1.value == 2||document.Entry.Check2.value == 2||document.Entry.Check3.value == 2||document.Entry.Check4.value == 2||document.Entry.Check5.value == 2||document.Entry.Check6.value == 2||document.Entry.Check7.value == 2||document.Entry.Check8.value == 2)
{
document.forms['Entry'].elements['txtFailure'].value = "Y";
}
else
{
document.forms['Entry'].elements['txtFailure'].value = "N";
}
//-->
</script>
However it doies not seem to be working could someone please have a look and let me know what I am doing wrong please
Regards
Paul