开发者

resizable select option dropdown help

开发者 https://www.devze.com 2023-02-16 01:10 出处:网络
I\'m using this plugin http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ and it works awesome!! but I\'d like to make the select dropdown boxes resize able using the jquery ui library. whe

I'm using this plugin http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ and it works awesome!! but I'd like to make the select dropdown boxes resize able using the jquery ui library. when i try it i end up with tw开发者_如何学JAVAo select boxes. I'm still learning jquery but is this case where i would use bind? or delegate?


I don't know the pluging that you said, but try to do this:

$("#multiselect-demo").multiselect({
   selectedText: "# of # selected"
});

$('#multiselect-demo') is your own select dropdown box. And then:

$('#multiselect-demo').resizable();

If it doesn't work like you want, try this instead:

$('.multiselect-menu').resizable();

I hope it helps. Happy codding!

PS: remember that you can change resizable behaviour. See documentation and examples for more information about this.

0

精彩评论

暂无评论...
验证码 换一张
取 消