title: How to place events on a HTML table by time
body: <p>I am trying to place events in my HTML table, however, I can only do it by 15-minute intervals as each cell is labeled by every 15 minutes. I change the background color to display when the event is happening. I use a start time and an end time, which is received from the database. </p>
  
  <p>When I want to place an event which 8:30 to 12:30, it is able to select the cell that has 8:30 and 12:30 and fill in the middle. However, I am unable to put anything in between 8:30 to 8:45 as there is nothing to select. For example, I want to put an event from 8:35 to 12:25, however, there is nowhere to place this in the HTML id selectors. </p>
  
  <p>How do I allow the HTML table to accept greater than just 15-minute intervals?
  Is there a better way to place events on an HTML table rather than just changing the background color of the cell?</p>
  
  <p>This is how it currently looks
  <a href="https://i.stack.imgur.com/WXH5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WXH5e.png" alt="current schedular"></a></p>
  
  <p>This is how it should look 
  <a href="https://i.stack.imgur.com/aPXJr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aPXJr.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;tr id="4_RowTable"&gt;
  &lt;td id="r4days"&gt;Friday&lt;/td&gt;
  &lt;td id="t_800_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_815_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_830_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_845_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_900_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_915_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_930_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_945_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1000_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1015_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1030_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1045_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1100_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1115_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1130_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1145_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1200_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1215_d_Friday" bgcolor="#0000FF"&gt;&lt;/td&gt;
  &lt;td id="t_1230_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1245_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1300_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1315_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1330_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1345_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1400_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1415_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1430_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1445_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1500_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1515_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1530_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1545_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1600_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1615_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1630_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1645_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1700_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1715_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1730_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1745_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1800_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1815_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1830_d_Friday"&gt;&lt;/td&gt;
  &lt;td id="t_1845_d_Friday"&gt;&lt;/td&gt;
  </code></pre>
  
  <p></p>