[thelist] Javascript question
josh
evolt at efeingold.com
Tue Jan 22 09:06:01 CST 2002
Here is a simple function that I can't get to work. Can you find my
mistake?
<head>
<script language=Javascript>
function validate()
if (document.all.board_decision_comments.value == '' &&
document.all.board_decision.value == 'Denied' ) {
alert ("Please enter reason for denial.")
return false
}
}
</script>
</head>
<body>
<form name="disposition" action=test.asp method=post onSubmit="return
validate()">
<select name='board_decision'>
<option value='No Decision'>No Decision
<option value='Approved'>Approved
<option value='Denied'>Denied
</select>
<textarea name=board_decision_comments></textarea>
</form>
</body>
</body>
Thanks,
Josh
More information about the thelist
mailing list