Hello List!
I have a checkbox on my page; and if the box isn't checked, I want to do a check on my form...
Checkbox code:
Then in my 'chkForm' function where I'm checking the values/data in the form... I want to see if it's checked, if not, do a check on the capacity numbers...
This is what I have, but am getting an 'Object Expected' error:
What am I doing wrong???
If I comment my 'if document.forms[0].validException.value!=1' statement out, the error is going away...
Thanks much for your time and expertise!
-jiggyg
I have a checkbox on my page; and if the box isn't checked, I want to do a check on my form...
Checkbox code:
Code:
<input type="checkbox" name="validException" value=1
<%
if trim(Request.QueryString("validException")) = "YES" then
Response.Write " checked"
end if
%>
> Valid Exception
</input>
Then in my 'chkForm' function where I'm checking the values/data in the form... I want to see if it's checked, if not, do a check on the capacity numbers...
This is what I have, but am getting an 'Object Expected' error:
Code:
function chkForm(){
var doSubmit = true;
:
:
//if checkbox is not checked, do the capacity check
if document.forms[0].validException.value!=1{
if ( (parseInt(document.forms[0].refurnCapacity.value)) < (parseInt(document.forms[0].currentCapacity.value)) ){
alert("Refurnished Workplace Capacity cannot be less than Current Capacity");
return;
}
}
selectAll();
document.forms[0].submit();
}
What am I doing wrong???
If I comment my 'if document.forms[0].validException.value!=1' statement out, the error is going away...
Thanks much for your time and expertise!
-jiggyg