KickApps - Change form validation to use JQuery. Fixes issues with IE

/ Published in: JavaScript
Save to your folder(s)

Fixes an issue if you have another login form on the page with a password field.

Copy this code and paste it in your HTML
  1. if(Ka.Info.PAGE == "login/registerUser.jsp"){
  2. if (Ka && Ka.formValidation) {
  3. Ka.formValidation.rules['password-match-with'].test = function(val,propVal){return (val == $j('#' + propVal).val()); }
  4. }
  5. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.