How to disable and enable HTML table using Javascript?

前端 未结 10 1286
醉梦人生
醉梦人生 2020-12-11 18:04

I want to know how can I disable and enable the highlighting on an HTML table using Javascript by clicking an html button.

Here are my codes:

tabletest.ht

10条回答
  •  天命终不由人
    2020-12-11 18:16

    If you want to make the table "unclickable" at any place of it - you may add a transperent div above with the same size.

提交回复
热议问题