jQuery UI dialog button focus

前端 未结 13 2185
时光取名叫无心
时光取名叫无心 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 13:01

    Use the blur method. You can try this sample.

    
        
            No Focus on jQuery Dialog
            
            
            
            
            
        
        
            Open Dialog
            

    Confirm that no elements have focus

提交回复
热议问题