Javascript indexof
JavaScript String.prototype.indexOf() The indexOf() method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found. I'd like to add a javascript validation to my password form to ensure that users are using special characters. So far I've found that using indexOf and looking for -1 if the specific character