10.07.2017 Views

javascript_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Javascript<br />

Basic Form Validation<br />

First let us see how to do a basic form validation. In the above form, we are<br />

calling validate() to validate data when onsubmit event is occurring. The<br />

following code shows the implementation of this validate() function.<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!