All,
I sorry for the 101 question but how do you combine 2 var into a document
statement i.e.
This Line works:
var maxChar = eval("document. " + formName + "." + FieldName +
".getAttribute( \"maxlength\"); ");
But any variation without the eval() statment dosen't:
var maxChar =
document.(formN ame).(FieldName ).getAttribute( "maxlength" );
var maxChar =
document.(formN ame)(FieldName) .getAttribute(" maxlength");
var maxChar =
document.(formN ame.FieldName). getAttribute("m axlength");
var maxChar = document.(formN ame + "." +
FieldName).getA ttribute("maxle ngth");
etc...
Can this be executed with out using eval()??
Thanks
I sorry for the 101 question but how do you combine 2 var into a document
statement i.e.
This Line works:
var maxChar = eval("document. " + formName + "." + FieldName +
".getAttribute( \"maxlength\"); ");
But any variation without the eval() statment dosen't:
var maxChar =
document.(formN ame).(FieldName ).getAttribute( "maxlength" );
var maxChar =
document.(formN ame)(FieldName) .getAttribute(" maxlength");
var maxChar =
document.(formN ame.FieldName). getAttribute("m axlength");
var maxChar = document.(formN ame + "." +
FieldName).getA ttribute("maxle ngth");
etc...
Can this be executed with out using eval()??
Thanks
Comment