Advertisement
vfontjr

Refactored from JY5KVHgt

Jan 7th, 2019
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.56 KB | None | 0 0
  1. <script>
  2. jQuery(document).ready(function ($) {
  3.     "use strict";
  4.     $('#field_k8k8c').on.( "change", function(){
  5.         var fiscal_hrs = $(this).val(),
  6.             award_status = "";
  7.         switch (fiscal_hrs) {
  8.             case >= 50 && < 60:
  9.                 award_status = "Almost There";
  10.                 break;
  11.             case > 60:
  12.                 award_status = "Earned";
  13.                 break;
  14.             default:
  15.                 award_status = "Not Yet";
  16.         }
  17.        
  18.         $(`#field_x3a82`).val(award_status);
  19.     });
  20. });
  21. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement