var regx = /^[A-Za-z0-9 _.-]+$/; if(regx.test($($input).val())) alert ("correct"); else alert('Incorrect!'); }
If I enter the entrance, does the @ or # character work? it works for me, but I think it should be wrong ...
Why doesn't it work fine?
source share