M
Marco Alting
Hi
I used this for loop in my code, but I keep getting a syntax error on this
line:
for(var i=0;i<tr;i++){
Here's the rest of the function:
function checkForm(oForm){
var totalRecords = document.getElementById("cbsTotal");
variation = eval('oForm.' + 'variation' + 0 + '.value');
changeNumber = eval('oForm.' + 'changeNumber' + 0 + '.value');
changeDescription = eval('oForm.' + 'changeDescription' + 0 + '.value');
tr = totalRecords.value;
for(var i=0;i<tr;i++){
alert(variation);
if(variation <> 0){
if(changeNumber = ""){
if(changeDescription = ""){
alert("You have not entered a change number for variation" + i);
return false;
}
}
}
}
I used this for loop in my code, but I keep getting a syntax error on this
line:
for(var i=0;i<tr;i++){
Here's the rest of the function:
function checkForm(oForm){
var totalRecords = document.getElementById("cbsTotal");
variation = eval('oForm.' + 'variation' + 0 + '.value');
changeNumber = eval('oForm.' + 'changeNumber' + 0 + '.value');
changeDescription = eval('oForm.' + 'changeDescription' + 0 + '.value');
tr = totalRecords.value;
for(var i=0;i<tr;i++){
alert(variation);
if(variation <> 0){
if(changeNumber = ""){
if(changeDescription = ""){
alert("You have not entered a change number for variation" + i);
return false;
}
}
}
}