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:
- <script type="text/javascript">
- jQuery("#frmuserdata").validationEngine({'custom_error_messages' : {
- '#cemailconfirm' : {'equals': {'message': "Emails do not match."}},
- '#cpasswordconfirm': {'equals': {'message': "Passwords do not match."}},
- }
- };
- </script>
- <script type="text/javascript">
- $(document).ready(function(){
- $("#frmuserdata").validationEngine('attach', {promptPosition : "topRight", scroll: false});
- });
- </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?