jQuery UI dialog button focus

前端 未结 13 2199
时光取名叫无心
时光取名叫无心 2020-12-13 12:08

When a jQuery UI dialog opens, it selects one of the buttons and highlights it or sets focus to it etc... How can I stop this behaviour so that none of the buttons are highl

13条回答
  •  没有蜡笔的小新
    2020-12-13 12:45

    I know the answer has already been selected, but there is a simple HTML solution that I found here a long time ago.

    Add the following code as the first element inside the DIV you designate as your dialog.

    
    

提交回复
热议问题