Skip to content

Jquery Validation Example1
Same Example Try in above link with demo 
<script src=""></script>
<script type="text/javascript" src=""></script>
<style type="text/css">
* { font-family: Verdana; font-size: 96%; }
label { width: 10em; float: left; }
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
p { clear: both; }
.submit { margin-left: 12em; }
em { font-weight: bold; padding-right: 1em; vertical-align: top; }


<form class="cmxform" id="commentForm" method="get" action="">
<legend>A simple comment form with submit validation and default messages</legend>
<label for="cname">Name</label>
<em>*</em><input id="cname" name="name" size="25" class="required" minlength="2" />
<label for="cemail">E-Mail</label>
<em>*</em><input id="cemail" name="email" size="25" class="required email" />
<label for="curl">URL</label>
<em>  </em><input id="curl" name="url" size="25" class="url" value="" />
<label for="ccomment">Your comment</label>
<em>*</em><textarea id="ccomment" name="comment" cols="22" class="required"></textarea>
<input class="submit" type="submit" value="Submit"/>