Here i am explaining how to do validation with jQuery validation plugin just go through it.
First of all you need to download Jquery library file and validate plugin library file.
Include script in your project like below
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script>
Here is your Form
<form name="register" action="" method="post" >
Username:...