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
Post a Comment