Jquery to change progress-bars aria-valuenow and css width property -


i have progress bar on page (bootstrap) looks this:

<div id="theprogressbar" class="progress-bar progress-bar-u"       role="progressbar" aria-valuenow="75%" aria-valuemin="0"       aria-valuemax="100" style="width: 75%"> 

i update via jquery, have done of work , calculated new value need put it, unsure of how target aria-valuenow , style=width values.

assuming jquery gives me new value+% variable called newprogress

$('#theprogressbar'). *(please me finish line)* (newprogress) 

$('#theprogressbar').attr('aria-valuenow', newprogress).css('width',newprogress); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -