JQuery - Form Validation

Is it possible to get an example (not link please) for a one field form JQuery validation, including necessary plugin links?

Just basic as can be saying field is required.

LVL 16
Who is Participating?
leakim971Connect With a Mentor PluritechnicianCommented:
with :

<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>

test page : http://jsfiddle.net/92BPm/

$(document).ready(function() {

Open in new window

<form action="http://www.google.gp" method="get">
    <input type="email" class="required email" />
    <br />
    <input type="submit" value="Submit" />

Open in new window

Kiran SonawaneConnect With a Mentor Project LeadCommented:
Here is validation of different types of form element
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Kiran Test</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>
    rules: {
      email: "required",
      name: "required",
      title: "required",
      checkme: {
        required: function(element){
          return !$("#checkme").is(':checked');


<form method="POST" id="registerForm" >
       <td><input name="email" type="email"></td>
        <select size="1" value="" name="title">
        <option selected></option>
        <option value="mr">mr</option>
        <option value="mrs">mrs</option>
        <option value="ms">ms</option>
        <option value="miss">miss
         <input name="name">
        <td>Check Me <input name="checkme" type="checkbox" id="checkme"></td>

<p><input type="submit" value="submit"><input type="reset" value="clear form"> </p>


Open in new window

carsRSTAuthor Commented:
Thank you!

Exactly what I wanted.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.