How can I set the width of a div as a percentage using jQuery?
How can I set the width of a div as a percentage using jQuery?
Using the width function:
$('div#somediv').width('70%');
will turn:
<div id="somediv" />
into:
<div id="somediv" style="width: 70%;"/>