Hey. I’m creating an input field (<input type="text" value="" />) that my user will enter their email in, but I am also using a live alphanumeric character restriction on that field (in jQuery) with the exception of the characters, .!#$%&'*+-/=?^_{|}~@. I’m wondering if it is worth it to do all this checking, or to just say “Hey, invalid email” when they hit submit? Thanks in advance!
Hey. I’m creating an input field ( <input type=text value= /> ) that my
Share
It’s not something you need to do in a given way, entirely your choice, but I think it’s helpful for a user to get the error while filling a form and not after it, so he should go back and change it, it’s a bit more time consuming. I personally did this on every registration form I’ve done.
If you mean only server side check under “when they hit submit” then you should really do a jquery check on the input as well, you spare traffic with it, also you need to do both server side and client side checking.