datepicker display 2 months + Disabling dates in the past and dependent disabling

2,117 views
Skip to first unread message

Alejandro Weintz

unread,
Feb 11, 2014, 3:24:22 PM2/11/14
to bootstrap-...@googlegroups.com
Hi

I am programming the following website booking engine using Eternicode version of Datepicker.

http://princessheights.com/v5/

Would like to know if it's possible to implement the following :

1) To display 2 months
2) When the user selects the date on the check in to automatically display the past dates on Box #2 (checkout)

Also I have no idea why the calendar is displaying sooo small, I included the libraries from the eternicode sandbox to try the plugins.

Thanks in advance for the help

Andrew Rowls

unread,
Feb 11, 2014, 4:31:02 PM2/11/14
to Alejandro Weintz, bootstrap-...@googlegroups.com
> 1) To display 2 months

I'm afraid not.

> 2) When the user selects the date on the check in to automatically
> display the past dates on Box #2 (checkout)

If you mean to *disable* past dates, yes, you can call datepicker's `setStartDate` method on #checkout to set the `startDate` option (the earliest selectable date) for its picker. You would do this from a `changeDate` event handler bound to #checkin.

http://bootstrap-datepicker.readthedocs.org/en/release/methods.html#setstartdate

As for the small font, it's cascading from your rules for `.specials-rates td, tr` in your css.css file.
> --
> 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/e5b13fcb-78de-45fd-ad45-b64c629b079c%40googlegroups.com.

Acordes tv

unread,
Apr 6, 2016, 5:01:02 PM4/6/16
to bootstrap-datepicker
Reply all
Reply to author
Forward
0 new messages