I can't seem to set the focus on Bootbox's textfield automatically.
here's my code: function setCode(myCode){
bootbox.confirm("Enter your PIN: <input id='pin_code' type='password' name='pin_code'></input>",
function(result) {
if(result)
console.log($("#pin_code").val());
});
$("#pin_code").focus();
};
Perhaps something about bootbox's code is getting in the way?