First of all thanks for all the help you are providing.
I am looking to alert a user if they type in an character that I am going to not allow for their input box
Code:
function IsExc (str){
var AllChr = "~ # $ % ^ { } [ ] ' ,";
var AC= AllChr.split(" ");
var SC = 0;
for (SC=0; SC <= AC.length; SC++){
var ACS = AC[SC];
if (str.search(ACS) >0 ) alert ('Cannot use the characters' + AllChr )
}
}
For reasons I don't understand the code will not work