I am working with an HTML table that includes a textbox and a button. I need to enable cell selection by dragging on the cell. When the button is clicked, I want to retrieve the value from the textbox and display it in a span tag within the selected cell. Additionally, I need to prevent clicking on certain cells (specifically those at 0, 15, 30, and 45 minutes intervals). In the provided fiddle, you can see that when clicking on these minute cells, their CSS turns green and the CSS length increases (as indicated in the alert).