How to attach onclick event to weeknumbers?

Hello,

I have a dhtmlXCalendar like this:

var myCalendar = new dhtmlXCalendarObject("calendarHere"); myCalendar.showWeekNumbers();

I would like to add an onclick event to the weeknumber-fields to get the first and last date of the week.

var myEvent = myCalendar.attachEvent("onClickToWeekNumbers", function(){ // read out the first and the last date of the week });

How can this be realized? Any ideas?

Regards

Hello
Please, provide us completed demo with description of the calendar’s behaviuor after this click.
docs.dhtmlx.com/doku.php?id=othe … leted_demo
We will try to suggest you something.