Posted by : Jebastin Wednesday 8 January 2014


Consider the following HTML.
  1. <input type="text" id="txtEmail" name="Email"  />
  2. <input type="text" id="txtConfirmEmail" name="ConfirmEmail" /> 
The following script is used to Compare two fields with jQuery validate plugin.
  1. $('#myform').validate({
  2.     rules: {
  3.         Email: { required: true },
  4.         ConfirmEmail: { equalTo: '#txtEmail' }
  5.     }
  6. });

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Link To This Post/Page

Spread The Word

Add this button to your blog:
JJ Technology Solutions

Blog Archive

Trackers

eXTReMe Tracker
facebook

- Copyright © JJ Technology Solutions - Powered by Source Code Solutions -