form Validation Using Javascript

I have created program using javascript to validate the form. the code validate the pattern applied on the textbox and the requird field. Code is as following;

Code

I have create another program which uses Modernizr to detect html 5 feature used in the form. Code is as follow;

Code

Advertisements