Page 1 of 1

Change Div Width

Posted: 23 Aug 2016
by mhurst2016
Hi Dmitry,

I have added the following HTML to a form using the HTML form attribute.



<div class="progress-wrap progress">

<div id="sslider" class="progress-bar progress"></div>



</div>

How can I change the width of the inner div using Java Script?

Tried this and it didn't work: $('.progress-bar').attr('width',pc+"%");

Thanks,

Re: Change Div Width

Posted: 24 Aug 2016
by Dmitry Kozlov
Hi,

Please, try this:

Code: Select all

$('.progress-bar').width(200);