Closed mburke1246 closed 10 years ago
Try using the special tab-blur
event that SelectBoxIt triggers. Like this:
var selectBox = $("select").selectBoxIt();
selectBox.on('tab-blur', function(ev, obj) {
setTimeout(function() {
obj.dropdown.focus();
}, 0);
});
I have been trying to figure out a way to prevent the user from leaving the select box. We have done this already for the text fields but for some reason the select box is not preventing the tab key from being fired.
How can I prevent the user from tabbing out of the select box?