Jquery Chosen focus on page load (onLoad?)

后端 未结 8 1418
清酒与你
清酒与你 2020-12-20 11:59

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         


        
8条回答
  •  独厮守ぢ
    2020-12-20 13:05

    In Chosen 1.0, this command is now:

    $('.my_select_box').trigger('chosen:activate');
    

    See here.

提交回复
热议问题