I\'m using the Jquery Chosen plugin on a select box, however I\'d like to focus this on page load. I\'ve used the following code to focus a text input:
onLoa
In Chosen 1.0, this command is now:
$('.my_select_box').trigger('chosen:activate');
See here.
This fixes the issue completely for me:
$('.chzn-drop .chzn-search input[type="text"]').focus(); $('.chzn-container').addClass('chzn-container-active');