I have a field that users can put in an asterisk for a wildcard, however, I do not want them to use a single wildcard. If they do, I want to throw an error. Here's what I have, but it's not working:
$(document).ready(function(){ //A single * in the Project # field is NOT ALLOWED $('.Submit').click(function() { if($('.projectNo').val() == '*') { alert('A single asterisk "*" is not allowed in the Project # field!'); } }); }); //close document.ready
What am I doing wrong?