1

I'm using bootstrap timepicker

enter image description here

I want to display default time in timepicker not in textfield

   jQuery('.timepicker').timepicker({
          orientation: 'top',
          defaultTime: '11:59 PM',
          showInputs: false,
          minuteStep: 60
     });

Using this code to display default time but default time is shown on textfield also

user3653474
  • 3,393
  • 6
  • 49
  • 135
  • @BoBiTza: I don't want to display default time in textfield only timepicker should contain default values when user clicks on timepicker then it should copy to textfield, like in my case 11:59 is default but it should not be in textfield by default – user3653474 Jan 28 '22 at 13:58
  • This depends on what timepicker you use, give us documentation of that plugin – BoBiTza Jan 28 '22 at 13:59
  • @BoBiTza Using bootstrap timepicket Link: https://jdewit.github.io/bootstrap-timepicker/ – user3653474 Jan 28 '22 at 14:06
  • Or you can try an `$('.timepicker').val(''); ` after your script – BoBiTza Jan 28 '22 at 14:18

0 Answers0