Question
Help with Code Syntax error
Can someone PLEASE, tell me where the error is in my code;
Here is the error:
SyntaxError: missing ] after element list
1: at line 2
Here is the code:
var fieldsToLock =["Name", "Student#:","Email:", "Phone#:", "Reference#:", Authorized by:", "Approved Amount","Approved Items:", "Price"]
[for (var i in fieldsToLock) this.getField(fieldsToLock[i]).readonly = true;]
I can't figure it out!
Thank you!