Modify table structure (merge cells) with jQuery

前端 未结 3 1820
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-07 04:01

I have a table

9:00task1
10:00
3条回答
  •  一整个雨季
    2021-01-07 04:43

    You actually need to add rowspan to ds10 and then remove ts11 from the second row here. Change you code from colspan to rowspan, add the following

    $("#ts11").remove();
    

    and you should get result you need. But i didn't personally try changing rowspan/colspan attributes via jquery, i'm just assuming it works well. Hope it helps.

    p.s.: corrected numbers, thought u need to merge 9 and 10 first :)

提交回复
热议问题