how to change value of progress bar
<pre><code>                        temp_volume=temp_volume-2;
                        if(temp_volume&lt;0)
                        {
                            temp_volume=0;
                        }
                        else
                        {

                            $('#inchat li.'+name_of_inchatting_class).css('height','97px');

                            $('#volume strong').text(temp_volume);
                            //$('#volume progress').attr("value")=temp_volume;

                        }   


  &lt;html&gt;
  &lt;div id="volume"&gt;  
  &lt;strong&gt;60&lt;/strong&gt;
  &lt;progress max="100" value="60"&gt;
  &lt;/progress&gt;
  &lt;/div&gt;  
  &lt;/html&gt;
</code></pre>

<p>I am trying to change the status of progress bar when the event happens
What is a right code to put in else condition statement?
Any thought? 
Thank you.</p>
