Guest User

Untitled

a guest
Jun 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function showError(dom_id) {
  2. document.getElementById( dom_id ).style.color = "#FF0000";
  3. }
  4. function showValid(dom_id) {
  5. document.getElementById( dom_id ).style.color = "#FFFFFF";
  6. }
  7.  
  8. // VALIDATES EQUAL TO THE REMAINING BALANCE
  9. var hoi_amount_field9 = new LiveValidation('withdrawal_hoi_amount',
  10. { validMessage: "",
  11. onValid: function(){ showValid('wdr_balance'); this.addFieldClass(); },
  12. onInvalid: function(){ showError('wdr_balance'); this.addFieldClass(); }
  13. }
  14. );
  15. hoi_amount_field9.add(
  16. Validate.Custom(
  17. {
  18. failureMessage: "",
  19. against: function(value,args)
  20. {
  21. return (value == args.avBal);
  22. },
  23. args: { avBal: 7413.07 }
  24. }
  25. )
  26. );
Add Comment
Please, Sign In to add comment