Change Div Width
-
- Posts: 4
- Joined: Sun Aug 21, 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,
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests