Client side validation has always been a potential headache for front-end programmers. Embedded blocks with a mixture of imperative JavaScript and declarative regexp can be a mess. HTML5 has ambition to add abstraction layers that would make this a bit easier. In this useful how to, there’s’ still a long way to go before it’s rock solid.
Visit WebsiteTags: #Code, #Form, #HowTo, #HTML, #HTML5, #Regex, #Regexp, #Regular Expression, #Snippets, #Validation, #Web Development