How to attach onclick event to weeknumbers?


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?


Please, provide us completed demo with description of the calendar’s behaviuor after this click. … leted_demo
We will try to suggest you something.