Closed rprsnt closed 10 years ago
You should be able to use the special changed
event to get this to work. Like this:
var selectBox = $("select").selectBoxIt();
// After the select box has been changed
selectBox.on('changed', function(ev, obj) {
// obj.dropdown corresponds to the selectboxit dropdown
obj.dropdown.blur();
});
Thanks, but it doesn't work, and i can't find the problem. I have exactly the same code as you :
$("select").selectBoxIt({
hideCurrent: true,
showEffect: "slideDown",
showEffectSpeed: 100,
});
var selectBox = $("select").selectBoxIt();
// After the select box has been changed
selectBox.on('changed', function(ev, obj) {
// obj.dropdown corresponds to the selectboxit dropdown
obj.dropdown.blur();
});
Thanks
Hi Greg, do you have any idea where my problem could come from? Many thanks !
Hi, thanks for your amazing work ! In a classic dropdown, you can blur the dropdown after the choose (like that : http://jsfiddle.net/9TG8r/) But with selectboxit, the dropdown always becomes focused at the the end of the choose. Is there a way to unfocused it automatically ?
Thanks, Damien