Bootstrap datepicker

后端 未结 2 1248
生来不讨喜
生来不讨喜 2021-02-08 08:07

I\'m trying to get bootstrap datepicker to highlight the date selected on the dropdown date picker. It\'s not currently doing this.. What am I missing?

2条回答
  •  情书的邮戳
    2021-02-08 08:47

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    for this u have to had bootstrap-datepicker.js & bootstrap-datepicker.min.js files.U can also call $('#datePicker').datepicker(); method but it comes with its own default settings. So in the script tag I have applied my own customization in the datepicker() method. Then I just make an datepicker input component in the div tag which is defined in the body tag but I have meke it briefly.

    The solution of u r question is the span tags. Which r applying icons on the datepicker input component. I have choosen an calender icon which is glyphicon glyphicon-calendar. But before it have to tell the browser that I am going embedd an icon by writing class="input-group-addon add-on" in the span tag which is used to group icon with the text input.

提交回复
热议问题