econnections
IS-IT--Management
Hello,
Is it possible to assign onclick to TD using a function?
The reason I ask is that my table represents a calander and I only want to cells populated with dates to have onclick assigned. The number of cells vary depending on the month.
I know I can assign values to a cell using:
document.getElementById('x').innerHTML;
but I'm not sure I can assign event handlers?
Can anyone offer help with this, please?
Is it possible to assign onclick to TD using a function?
The reason I ask is that my table represents a calander and I only want to cells populated with dates to have onclick assigned. The number of cells vary depending on the month.
I know I can assign values to a cell using:
document.getElementById('x').innerHTML;
but I'm not sure I can assign event handlers?
Can anyone offer help with this, please?