title: jquery timepicker and ajax
body: <p>I'm trying to pass time values ​​to timepicker. I take time from the database using ajax.
  when i pass the values ​​from the database to the parameter disableTimeRanges , </p>
  
  <pre><code>$(function() {
          $("#id_time_visit").timepicker({
               timeFormat: 'H:i',
               minTime: '8', 
               maxTime: '19',
               step: 60,
               disableTimeRanges: []
          });
      });
      $('.pole').change('input', function() {
       var datetime = $(this).val();//I get the value from the form field
         $.ajax({
         url: '/your-url/',
         type: 'get', 
         data: {'datetime': datetime},
          success: function(e){
               console.log(e)
               var time=e;
               $("#id_time_visit").timepicker({
                   timeFormat: 'H:i',
                   minTime: '8', 
                   maxTime: '19',
                   step: 60,
                   disableTimeRanges: time
               });
          },
          error: function(e){
               console.log(e);
          }
      })
  </code></pre>
  
  <p>time becomes unavailable, but when I select another day, which has a different time, then the time for that day becomes inaccessible only if I reload the page. How to make time update when changing days without rebooting</p>