title: how do I drive the width of span class with variable
body: <p>Please where am I mistaking?
  I am trying to change the progress bar base on variable and it is not working.</p>
  <pre><code>    &lt;script&gt;
          function grafWidth(GtempPar) {
           var GtempPar = 30;
            
          document.getElementById('progress-in').style.width = GtempPar + &quot;px&quot;;
          }
      &lt;/script&gt;
  
      &lt;div class=&quot;progress&quot;&gt;
          &lt;a class=&quot;majko&quot;&gt;Temp_G_back&lt;/a&gt;
          &lt;span class=&quot;progress-val&quot;&gt;&lt;div id=&quot;Gtemp&quot;&gt;&lt;/div&gt;°C&lt;/span&gt;
          &lt;span class=&quot;progress-bar&quot;&gt;&lt;span class=&quot;progress-in&quot;.style.width =&quot; 80px&quot;&gt;&lt;/span&gt;&lt;/span&gt;
      &lt;/div&gt;
  </code></pre>