"show" event not working with inline datepicker
See original GitHub issueI have an inline datepicker and try to alert current selected date (automatically selectedd date). This is my code.
function x(current_date){
alert(current_date);
}
$('.datepicker').datepicker().on('show', function(e){
x(e.format());
});
but its not alert anything. Please help.
Issue Analytics
- State:
- Created 10 years ago
- Comments:5
Top Results From Across the Web
Event not fired on datepicker [duplicate] - Stack Overflow
Closed 4 years ago. I am using bootstrap datepicker inline, when i click on a year , it is fine as i see...
Read more >inline datepicker beforeShow not occurring - jQuery Forum
The demo shows this in an always open inline datepicker calendar, but I've tried this in a 'regular' datepicker and text box field,...
Read more >Events — bootstrap-datepicker documentation
Datepicker triggers a number of events in certain circumstances. All events have extra data attached to the event object that is passed to...
Read more >How to use Bootstrap Datepicker to get date on change event
In this article, we will learn how to use Bootstrap Datepicker to get a date on changes of events. Bootstrap Datepicker is an...
Read more >Datepicker Widget - jQuery UI API Documentation
For an inline calendar, simply attach the datepicker to a div or span. ... a native change event may not be fired when...
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 FreeTop 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
Top GitHub Comments
First use the .on() method and invoke .datepicker() on the end, so that the behaviour of the show event would be implemented before actually ‘showing’
Hi!
I would like to know how I could use the method “setDatesDisabled()” inside the “on show” event, please. Something like:
I’m doing like that, but I have always been gotten the “Uncaught TypeError: $(…).datepicker is not a function” error.