How to change the width of select box in jquery or i开发者_运维问答n html?
In HTML
<select name="foo" style="width:30px;">
<option>one</option>
<option>two</option>
<option>three</option>
</select>
In Jquery
$('#Id').width(30);
use css()
.
$('select').css({'width': 200});
One option is to use width
$('#selectId').width(175);
精彩评论