django-bootstrap-datepicker-plus icon indicating copy to clipboard operation
django-bootstrap-datepicker-plus copied to clipboard

Event handling

Open rg-software opened this issue 5 years ago • 0 comments

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?

rg-software avatar Jun 02 '19 02:06 rg-software