Change Div Width

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
mhurst2016
Posts: 4
Joined: Sun Aug 21, 2016

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,

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

24 Aug 2016

Hi,

Please, try this:

Code: Select all

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

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests