Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Need a bit of Form Field JavaScript Help


moonbiter - 7:00 pm on Oct 8, 2002 (gmt 0)


Your submit button:

<input type="submit" name="submitName" disabled="disabled" />

and in the javascript:

<script type="text/javascript">
function verify(val){
if (val <= 25) {
alert("Your number is less than 25, try again");
document.formname.boxname.focus();
} else {
document.formname.submitName.disabled = false;
}
}</script>


Thread source:: http://www.webmasterworld.com/javascript/207.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com