random1 Posted September 25, 2009 Share Posted September 25, 2009 Hey All, I'm looking for how to get straight forward, functions for limiting entry into form fields. These are to help the user and accompany my server-side PHP form validation. e.g. * Only allow letters and numbers (all other keystrokes are ignore and nothiing is typed) * Disallow space characters in entry * Limit to only numbers * Limit to only letters Any ideas on this? Quote Link to comment Share on other sites More sharing options...
trq Posted September 25, 2009 Share Posted September 25, 2009 Plenty of ways to do this, I find the simplest however is this little jQuery plugin. http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ Quote Link to comment Share on other sites More sharing options...
random1 Posted September 25, 2009 Author Share Posted September 25, 2009 Is there a way to prevent the entry of say space characters? Quote Link to comment Share on other sites More sharing options...
trq Posted September 25, 2009 Share Posted September 25, 2009 Of course there is. All the default rules are within the jquery.validationEngine.js file yet its easy to extend and create your own. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.