Calendar link to input, but how to disable onClick on input?

Hi,

I’ve linked my DHTMLXCalendarto an editable input. An, when I click on the input, the calendar is displayed. But I want to manage the hide/show of the calendar myself.

How to disable the default behaviour?



Regards



Francillo


Hello,


in this case you don’t need to attach calendar to input. You can hide/show calendar in a certain position. Position can be set by setPosition(y,x) method.


The onClick event handler can be used to show selected value in some input - the sample in the calendar package:


dhtmlxCalendar/samples/date_formating/calendar_date_format.html