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
I stumbled upon a little hack to fix this that others may find useful. A solution like this seems to work for me:
$( "#button" ).click(function() {
// this is a hack to prevent the focus from remaining after a click
$(this).toggle(this.checked);
});
It simply programmatically sets it checked again, which seems to clear up the focus issue.