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
Just add this line to remove the autofocus functionality:
$.ui.dialog.prototype._focusTabbable = function(){};
You can add it in a shared javascript file and it will prevent autofocus of all your dialogs! No more copy and paste in all your dialogs