Javascript SelectBox Jquery插件设置值

Javascript SelectBox Jquery插件设置值,javascript,jquery,css,Javascript,Jquery,Css,我正在使用这个伟大的库:我使用4个HTML选择,它们被转换成新的ul/li下拉列表 $('#s1,#s2,#s3,#s4').selectBox({menuSpeed: 'fast'}); $('s1,'s2,'s3,'s4')。选择框({menuSpeed:'fast'}); 1:更改每个框的Css? 所有框只有一个css,我需要更改每个框的最小宽度。每个html select都有一个名为selectBox dropdown的新类 $('.selectBox-dropdown').eq(0).

我正在使用这个伟大的库:我使用4个HTML选择,它们被转换成新的ul/li下拉列表

$('#s1,#s2,#s3,#s4').selectBox({menuSpeed: 'fast'}); $('s1,'s2,'s3,'s4')。选择框({menuSpeed:'fast'}); 1:更改每个框的Css? 所有框只有一个css,我需要更改每个框的最小宽度。每个html select都有一个名为selectBox dropdown的新类

$('.selectBox-dropdown').eq(0).attr('style','min-width: 55px;'); $('.selectBox下拉列表').eq(0).attr('style','min-width:55px;'); $('.selectBox下拉列表').eq(1).attr('style','min-width:105px;'); 我只找到了一种方法来改变每个盒子的样式,但我认为这不是很方便。 是否可以使用id更改css?但是#s1被设置为显示:当jquery函数应用于所有select

2:如何设置selectBox的值? $('s1')。选择框('value',200)/*不起作用*/

$('.selectBox下拉列表').eq(0.attr('html','200')/*不起作用*/

谢谢你的回答

$('.selectBox-dropdown').eq(1).attr('style','min-width: 105px;'); $('#s1').selectBox('value', 200); /*doesn't work*/ $('.selectBox-dropdown').eq(0).attr('html','200'); /*doesn't work*/