Hi,
Have coldfusion textarea and want to insure user makes entry before submit to server processed. I am doing this wrong - any suggestions to correct are greatly appreciated.
<script type="text/javascript">
function rationale()
{
var denInfo = document.getElementById("denialReason");
If(denInfo != "")
{
return true;
}
else
{
alert("Please enter reason in Rationale for Request Denial.");
return false;
}
}
</script>
Submit button code:
<cfinput type="submit" id="denied" name="decDenied" value="Request Denied" style="vertical-align:bottom; visibility:hidden" onClick="rationale();">
Thank you - John
Have coldfusion textarea and want to insure user makes entry before submit to server processed. I am doing this wrong - any suggestions to correct are greatly appreciated.
<script type="text/javascript">
function rationale()
{
var denInfo = document.getElementById("denialReason");
If(denInfo != "")
{
return true;
}
else
{
alert("Please enter reason in Rationale for Request Denial.");
return false;
}
}
</script>
Submit button code:
<cfinput type="submit" id="denied" name="decDenied" value="Request Denied" style="vertical-align:bottom; visibility:hidden" onClick="rationale();">
Thank you - John