title: JavaScript delete merged table cell
body: <p>I have been working on a scheduling website for the past few weeks. I am showing the schedules as PHP generated html-tables. I use merged cells for showing events. I have come to a problem when trying to delete events using JS. Since those are merged cells, using rowspan, I have to go through the table and re-adding empty cells whenever there is a need when I delete one. My solution is working fine for when my table contains one merged cell among nothing but empty cells, but with a more complex table, it fails. I can't really grasp what's wrong with it, except that it doesn't correctly find the cellIndex anymore. Does anyone have a clue? Here is what I'm talking about:</p>
  
  <p><a href="http://aturpin.mangerinc.com/table.html" rel="nofollow noreferrer">http://aturpin.mangerinc.com/table.html</a></p>
  
  <p>(Click on an event to remove it, or attempt to anyhow)</p>