I am using this code to check sub string value on the page.
if ((col == 4 || col == 6) && ((text.substr(0, 1) == "%") || (text.substr(0, 1) == "@") || (text.substr(0, 1) == " "))) {
GetVariableDescription(pageIndex, row, col, text);
}
When I am trying the Code with %0012 or %00AA or @1234 or @ABDJC
It’s working good but when I am entering AAAk or 1234 or ASJA
It’s not validating
Is that something I am doing wrong here? this condition is not true?
(text.substr(0, 1) == " ")
Obviously that’s because the first character of
AAAkisn’t a space