Jquery Validation Engine custom messages issues

Jquery Validation Engine custom messages issues

Hi,

I am using the jQuery validation engine plugin from posabsolute. (https://github.com/posabsolute/jQuery-Validation-Engine). I am running the following code:

  1. <script type="text/javascript">
  2. jQuery("#frmuserdata").validationEngine({'custom_error_messages' : {
  3.     '#cemailconfirm' : {'equals': {'message': "Emails do not match."}},
  4.     '#cpasswordconfirm': {'equals': {'message': "Passwords do not match."}},
  5. }
  6. };
  7. </script>
  8. <script type="text/javascript">
  9. $(document).ready(function(){
  10.     $("#frmuserdata").validationEngine('attach', {promptPosition : "topRight", scroll: false});
  11. });
  12. </script>
I know that I have the custom messages before the attach. I tried it after too. I also tried it as one command. I clearly have something wrong with the custom message line but I cannot figure out what it is. When I have them separate, the validation works but I only get the default messages. When I combine everything into one call, nothing works.

Any idea what I am doing wrong?