I have a field and a "check" button that checks if the field is empty. The problem is that after the click on 'Ok' in the popup (I use bootbox), it doesn't focus the field.
I tried with
document.getElementById("field").focus();
and
$('#field').focus();
but it doesn't works
Thanks
The plugin, after click "ok", modifies the dom and you loose the focus, so you only need a timeout to achieve it: jsFiddle.