How can i set width of div in percentage using jquery?
+3
A:
Using the width function:
$('div#somediv').width('70%');
will turn:
<div id="somediv" />
into:
<div id="somediv" style="width: 70%;"/>
Darin Dimitrov
2010-01-23 19:15:38