django-bootstrap-datepicker-plus
django-bootstrap-datepicker-plus copied to clipboard
Event handling
I would truly appreciate a good advice in my problem. I want to handle events of the datepicker, but events aren't covered in the documentation.
I only need a simple JS function call for HTML DOM events, so I expected this code to work:
self.fields['my_calendar'].widget.attrs['onchange'] = 'checkDate();'
It renders correctly in HTML, but the onchange
event is never generated! Same with onselect
. Is there anything I can do?