Can anyone tell me if there is any chance to validate fields that are in a for-next loop. I tried to validate them by this line of code:
function validateUser() {
if (document.rfqForm.description.value==""
...
document.rfqForm.submit(form);
}
...
<input type="button" name="addItems" value="Add Items" OnClick="validateUser(this.form)">
...
but it doesn't work for the loop. It seems that JavaScript can not reach values inside the for-next function since the values in the loop are local. Am I right?
If there is no way to find the solution for this, can anybody help me to show me then how to validate the fields via ASP code. What function is the best for validation and is it possible to get similar alert window in ASP like in JavaScript.
Thanks.
function validateUser() {
if (document.rfqForm.description.value==""
...
document.rfqForm.submit(form);
}
...
<input type="button" name="addItems" value="Add Items" OnClick="validateUser(this.form)">
...
but it doesn't work for the loop. It seems that JavaScript can not reach values inside the for-next function since the values in the loop are local. Am I right?
If there is no way to find the solution for this, can anybody help me to show me then how to validate the fields via ASP code. What function is the best for validation and is it possible to get similar alert window in ASP like in JavaScript.
Thanks.