confirmPassword: { field: 'Password Confirmation', required: true, errorMsg: 'Please retype your password to confirm', validations: [ { name: function() { return !!(this.value==document.getElementById('password').value); }, onblur: true, onsubmit: true, errorMsg: 'The entered password confirmation does not match the password' } ] },
function(text) { return (text >= 10 && text <= 20); }
<script type="text/javascript"> function validateBetween10and20(text) { return (text >= 10 && text <= 20); } </script>
<!-- <validanguage target="textfield5" validations="validateBetween10and20" onblur="true" onsubmit="true" errorMsg="Value must be between 10 and 20" /> -->
textfield5: { validations: [ { name: validateBetween10and20, onblur: true, onsubmit: true, errorMsg: 'Value must be between 10 and 20' } ] },
validanguage.el.email = { transformations: [ { name: validanguage.stripWhitespace, onblur: true } ] },
validanguage.el.form1 = { onsubmit: function() { this.setAttribute('action', document.location.href); } },