Change Div Width
Posted: 23 Aug 2016
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,
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,