Can I use Jquery to insert a closing tag and an opening tag inside a dynamic table?

前端 未结 3 835
小蘑菇
小蘑菇 2020-12-21 06:43

I\'m trying to use the code below to dynamically add closing tag followed by opening so that i creates a new row every three cells. Almost working, DOM inspector shows a T

3条回答
  •  礼貌的吻别
    2020-12-21 07:01

    As lonesomeday said, you can't treat a DOM like a bit of HTML. Besides, TR closing tags are optional so when you insert some markup with an opening TR, the browser will close it. You don't need a closing tag.

提交回复
热议问题