Why is Datepicker not highlighting dates on Bootstrap modal?

2,217 views
Skip to first unread message

Renier de Bruyn

unread,
Jan 14, 2014, 7:37:50 AM1/14/14
to bootstrap-...@googlegroups.com

The date picker is not highlighting the selected dates on Bootstrap 3 model:
modal-datepicker

This is my code:

$('#myModal').on('shown.bs.modal', function() {
 $
("#dp3").datepicker({
     todayBtn
: true,
     autoclose
: true,
     todayHighlight
: true,
     endDate
: "current"
});

Why is it not highlighting the date?

Andrew Rowls

unread,
Jan 14, 2014, 3:36:28 PM1/14/14
to Renier de Bruyn, bootstrap-...@googlegroups.com
Have you included the datepicker css?

On 01/14/2014 07:37 AM, Renier de Bruyn wrote:
> The date picker is not highlighting the selected dates on Bootstrap 3 model:
> modal-datepicker <https://f.cloud.github.com/assets/4373602/1910303/e0e21106-7d13-11e3-9343-8661915e8529.PNG>
>
> This is my code:
>
> |
> $('#myModal').on('shown.bs.modal',function(){
> $("#dp3").datepicker({
> todayBtn :true,
> autoclose :true,
> todayHighlight :true,
> endDate:"current"
> });
> |
>
>
> Why is it not highlighting the date?
>
> --
> You received this message because you are subscribed to the Google Groups "bootstrap-datepicker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bootstrap-datepi...@googlegroups.com.
> To post to this group, send email to bootstrap-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bootstrap-datepicker/c939daa7-c151-4050-9d56-498b5c02d21e%40googlegroups.com.
Message has been deleted

Renier de Bruyn

unread,
Jan 15, 2014, 1:31:31 AM1/15/14
to bootstrap-...@googlegroups.com, Renier de Bruyn
Thanks for pointing that out... I had it included, but it had the wrong path, fixed the patch to the `datepicker.css` and now it works... Thanks...


On Tuesday, 14 January 2014 22:36:28 UTC+2, eternicode wrote:
Have you included the datepicker css?

On 01/14/2014 07:37 AM, Renier de Bruyn wrote:
> The date picker is not highlighting the selected dates on Bootstrap 3 model:
> modal-datepicker <https://f.cloud.github.com/assets/4373602/1910303/e0e21106-7d13-11e3-9343-8661915e8529.PNG>
>
> This is my code:
>
> |
> $('#myModal').on('shown.bs.modal',function(){
>   $("#dp3").datepicker({
>       todayBtn :true,
>       autoclose :true,
>       todayHighlight :true,
>       endDate:"current"
> });
> |
>
>
> Why is it not highlighting the date?
>
> --
> You received this message because you are subscribed to the Google Groups "bootstrap-datepicker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bootstrap-datepicker+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages