jQuery validation Query
Phew, I’ve made it to lecture 126 or rather that is my next one to do. The jquery stuff is pretty intense. I’m not sure my brain can take the strain of it. I am following the step by step and keeping track of every bracket and semi-colon and my code is working, but I am not sure how well I would be on figuring it out for myself. Still the question is do I need to figure it out for myself? Or is it all about knowing where to cut and paste from.
It struck me in working through the validation of a form with email, telephone and password that the “isNumeric” validation for telephone number is insufficient, and indeed in testing the code I just put in one number and that made it OK. So I thought there must be some other code like for the email validation that could be found by googling that could also test for particular country telephone number formats and also take into account brackets and spaces. Of course there is and there are plugins!
I found validate the jquery validation plugin, which looks interesting. This prompted me to watch the video that I have embedded below and as an aside I think it made me realise why I like Rob’s delivery of the course… he isn’t American. I find the American accent makes me just hear words and not pay attention to the meaning. Nevertheless I am including the video as it has useful guidance for the plugin. I can see a pattern of how to use these things now, so I have learnt that much.
Overall my conclusion is that I don’t need to speak the language I need to be able to read it and know which bits do what and therefore which to take and use.
In other news, I need to put some other plugins on this blog, particularly some kind of stats so I can see if it is being looked at. I also need to think about moving my other WordPress.com blogs to some self hosting and research where that would best be.
Recent Comments