tags:

views:

59

answers:

1

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