I am working on event management project. I created an event in 1 day. I want to change the background color of the td only when the user clicks on an empty portion. If they click on the event div there should be no change in background color.
$(document).on("click", "td", function() {
$(this).css("background-color", "lightblue");
});
If I click on the event the background color changes. I want that it only changes when I click on an empty portion.