Html and Internet Explorer: How to avoid hidden elements to be copied/pasted

后端 未结 2 1352
礼貌的吻别
礼貌的吻别 2021-01-22 09:56

I\'ve a TABLE, in a HTML5 document.

I\'ve a view selector who hide/show some rows, using jQuery hide() and show().

When user select the

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-22 10:41

    Nasty hack, but you could:

    • clone the table with js onload somewhere else on the page with a display:none
    • 'Hiding' rows actually removes them from the DOM of the original table
    • restoring hidden rows by replacing from hidden cloned version of table

提交回复
热议问题