HTML CSS examples for CSS Form:input
HTML5 input validate with pattern
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <!--from ww w .j a va2s .c o m--> <body> <form onsubmit="console.log('successful'); return false;"> <input value="IN16/20032/2012" pattern="(?:[A-Za-z]{2}[0-9]{2,4}|[A-Za-z]{3}[0-9]{1,3})\/[0-9]{5}\/[0-9]{2,4}"> <input type="submit" value="submit"> </form> </body> </html>