Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery Uniform change select size

How can I change the size of an input select using Jquery Uniform?

http://uniformjs.com

like image 672
CannyDuck Avatar asked Oct 26 '11 09:10

CannyDuck


2 Answers

<script>
 $('div.selector span', $('#parent_span')).css('width', '600px');
 $('div.selector', $('#parent_span')).css('width', '630px');
</script>

<span id="parent_span">
 <select style="width:630px;">
 </select>
</span>
like image 102
Antony Harder Avatar answered Oct 03 '22 03:10

Antony Harder


Change width for div.selector span using CSS, but you 'll have to consider width of parent tag too.

like image 34
Riz Avatar answered Oct 03 '22 04:10

Riz