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.getEle mentById("cbsTo tal");
variation = eval('oForm.' + 'variation' + 0 + '.value');
changeNumber = eval('oForm.' + 'changeNumber' + 0 + '.value');
changeDescripti on = eval('oForm.' + 'changeDescript ion' + 0 + '.value');
tr = totalRecords.va lue;
for(var i=0;i<tr;i++){
alert(variation );
if(variation <> 0){
if(changeNumber = ""){
if(changeDescri ption = ""){
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.getEle mentById("cbsTo tal");
variation = eval('oForm.' + 'variation' + 0 + '.value');
changeNumber = eval('oForm.' + 'changeNumber' + 0 + '.value');
changeDescripti on = eval('oForm.' + 'changeDescript ion' + 0 + '.value');
tr = totalRecords.va lue;
for(var i=0;i<tr;i++){
alert(variation );
if(variation <> 0){
if(changeNumber = ""){
if(changeDescri ption = ""){
alert("You have not entered a change number for variation" + i);
return false;
}
}
}
}
Comment