Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showError(dom_id) {
- document.getElementById( dom_id ).style.color = "#FF0000";
- }
- function showValid(dom_id) {
- document.getElementById( dom_id ).style.color = "#FFFFFF";
- }
- // VALIDATES EQUAL TO THE REMAINING BALANCE
- var hoi_amount_field9 = new LiveValidation('withdrawal_hoi_amount',
- { validMessage: "",
- onValid: function(){ showValid('wdr_balance'); this.addFieldClass(); },
- onInvalid: function(){ showError('wdr_balance'); this.addFieldClass(); }
- }
- );
- hoi_amount_field9.add(
- Validate.Custom(
- {
- failureMessage: "",
- against: function(value,args)
- {
- return (value == args.avBal);
- },
- args: { avBal: 7413.07 }
- }
- )
- );
Add Comment
Please, Sign In to add comment