attachEvent - get ID

I need get element’s ID which I clicked

I use
myCalendar.attachEvent(“onClick”, function(event) {
alert(this.id);
alert(event.id);
});

Result: empty string.

Thanks.

Hello
Need to specify: you mean the ID of (i.e.) input with calendar?
If i am wrong, please, clarify your question: what do you expect and how do you going to use this ID?

Yes. Calendar’ ID.

I have 3 calendars on page. I use input with icon and I need do simultaneous change all values in inputs. I must emulate onChange (when I clicked) to update inputs. Because its update simultaneously only with onChange