- Back to Home »
- jQuery , Validation »
Posted by : Jebastin
Wednesday, 8 January 2014
Consider the following HTML.
- <input type="text" id="txtEmail" name="Email" />
- <input type="text" id="txtConfirmEmail" name="ConfirmEmail" />
- $('#myform').validate({
- rules: {
- Email: { required: true },
- ConfirmEmail: { equalTo: '#txtEmail' }
- }
- });