From & to calendars
See original GitHub issueHey. I can’t seem to find an example as to how to do this with the new v3 api. Could you please advise?
Here is how it’s done with the jquery ui datepicker:
$( "#from" ).datepicker({
onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#to" ).datepicker({
onClose: function( selectedDate ) {
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
}
});
Issue Analytics
- State:
- Created 10 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Date Duration Calculator: Days Between Dates - Time and Date
Calendar with Logo (PDF). Add your company logo to our printable calendars. Illustration image. Date Calculator API. Find a ...
Read more >Form to Calendar - Google Workspace Marketplace
Create event by submitting form, turn form response into Google Calendar event. Generate a form with start time and end time fields for...
Read more >Create & share a group calendar - Google Support
These are called group calendars. For example, you might want a shared group calendar for company holidays and another one for organization-wide meetings....
Read more >Set up multiple calendars on iPhone - Apple Support
You can keep track of all your events and appointments in one calendar, but additional calendars are easy to set up and a...
Read more >Introduction to Calendars
A calendar is a system of organizing units of time for the purpose of reckoning time over extended periods. There are six principal...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
$(‘.datepicker’).on(‘change’, function () { if ($(this).attr(‘id’) === ‘datefrom’) { alert($(this).val()) $(‘#dateto’).pickadate(‘picker’).set(‘min’,$(this).val()); } if ($(this).attr(‘id’) === ‘dateto’) { $(‘#datefrom’).pickadate(‘picker’).set(‘max’,$(this).val()); } });
An upgrade from what @akash-suthar did:
and in the html
and