text: $(document).ready(function(){
      document
          .getElementById('akhir')
          .addEventListener(
              'input',
              event => event.target.value = (parseInt(event.target.value.replace(/[^\d]+/gi, '')) || 0).toLocaleString('en-US')
          );
      
      document
          .getElementById('awal')
          .addEventListener(
              'input',
              event => event.target.value = (parseInt(event.target.value.replace(/[^\d]+/gi, '')) || 0).toLocaleString('en-US')
          );
  
      var input = $("#akhir");
      var len = input.val().length;
      input[0].focus();
      input[0].setSelectionRange(len, len);
  
      var awal = $('#awal').val();
      awal = awal.split(',');
      awal = awal.join('');
      awal = parseInt(awal); 
  
      var akhir = $('#akhir').val();
      akhir = akhir.split(',');
      akhir = akhir.join('');
      akhir = parseInt(akhir);
      
      if(akhir >= awal){
          $("#tambah").prop("disabled", false);
      }
      else{
          $("#tambah").prop("disabled", true);
      }
  
      $("#akhir,#awal").on("change paste keyup", function() {
          var akhir = $('#akhir').val();
          akhir = akhir.split(',');
          akhir = akhir.join('');
          akhir = parseInt(akhir);
  
          var awal = $('#awal').val();
          awal = awal.split(',');
          awal = awal.join('');
          awal = parseInt(awal); 
          
          if(akhir >= awal){
              $("#tambah").prop("disabled", false);
          }
          else{
              $("#tambah").prop("disabled", true);
          }
      });
  });