I have a calender that shows date in table format.
I have click event on each of the <td>
elements for some additional function processing. Can multi-select with Ctrl be enabled on the table elements and do the function call for all the dates selected in one go? Thanks.
Below is the code :
$("#table_calender td").live('click', function(e){
if($(this).hasClass('booked')){
alert('already booked');
}
else{
if(e.ctrlKey) {
alert('ctrl clicked');
}
else {
alert('not booked');
}
}
});