I have some validation at the moment that returns false if a user enters a value that is less than 7 characters as so:
if (nextPgeNum == 3 && $('#txt-centre').val().length < 7 ) {
alert("Invalid Cost Centre");
return false;
}
What I need to do is add further validation to the same element to return false if #txt-centre
doesn't begin with '212'