Jquery'de özel doğrulama ile çalışmaya çalışıyorum. Tüm kodlama kısmı haklı, ama onun yanlış gittiği yere gitmiyorum ... işte kodun bir parçası.jQuery Doğrulama eklentisi ile özel yöntem
Password:<input type="password" id="pnameTxt" name="pnameTxt" placeholder="Enter Password" size=12 class='required'><br>
Confirm Password:<input type="password" id="pnameTxt2" name="pnameTxt2" placeholder="Retype Password" size=15 class='required passwordCheck'><br>
Özel doğrulama yöntemi:
$.validator.addMethod("passwordCheck",function (value,element){
return value==$("#pnameTxt").val();
}, 'Password and Confirm Password should be same');
özel yöntemi yazmaya gerek yok. Sadece 'equalTo' kuralını kullanın. Bakınız: http://docs.jquery.com/Plugins/Validation/Methods/equalTo#other – Sparky