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