SHARE
TWEET

Refactored from JY5KVHgt

vfontjr Jan 7th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top