How avoid from user insert white-spaces in ? (I use jquery.validate.js plugin)
Example:
input not possible(because user not able insert white-spaces): John Pitt My
input possible:JohnPittMy
Edit:
use of regex in this case mistake - should be used only value.indexOf(' ')
please I asking how to that with only http://docs.jquery.com/Plugins/Validation
Thanks