mayman212 Posted October 7, 2011 Share Posted October 7, 2011 Hi all, I want to know how to validate a UK postcode and a UK telephone number using j Query, in a form. Any help on this topic would be much appreciative. Thanks Link to comment https://forums.phpfreaks.com/topic/248617-validating-using-jquery/ Share on other sites More sharing options...
AyKay47 Posted October 7, 2011 Share Posted October 7, 2011 what exactly do you mean when you say validate here? have you started this at all yet? any code to show? Link to comment https://forums.phpfreaks.com/topic/248617-validating-using-jquery/#findComment-1276742 Share on other sites More sharing options...
bravo14 Posted October 10, 2011 Share Posted October 10, 2011 Try downloading the jquery validation engine from http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ this has a UK Postcode validator ready made. Link to comment https://forums.phpfreaks.com/topic/248617-validating-using-jquery/#findComment-1277744 Share on other sites More sharing options...
haku Posted October 11, 2011 Share Posted October 11, 2011 jQuery is a library used for manipulating DOM elements. Element validation is not DOM manipulation. You may want to insert success/failure messages with jQuery after doing the validation, but jQuery itself isn't the right tool for validation. Link to comment https://forums.phpfreaks.com/topic/248617-validating-using-jquery/#findComment-1278163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.