Hi guys
How can I check that my string is a certain length
Here is my code
var inpObjs = document.getElementsByName('licensenumber[]');
validChars = /^[a-zA-Z\\d]/
for(i=0; i < inpObjs.length; i++){
if(!validChars.test(inpObjs[i].value)){
if (inpObjs.length() != 16)
alert("Please enter licence number for each person");
return false;
}
}