[removed] error 800a025e using range selector

后端 未结 3 1531
栀梦
栀梦 2021-01-07 22:36

I\'m executing these simple rows of javascript in latest ie 11, just to select all content of a div

Here a screenshot from ie11 dev tool

3条回答
  •  梦毁少年i
    2021-01-07 23:05

    I resolved using this trick:

    I wrapped the html table with a DIV

    I use the same code, as is, with no changes, against the DIV, instead of using for selecting only the table.

    It's working.

    Probably html table is not a selectable text for IE

提交回复
热议问题