<script type="text/javascript"> $(".progressbar").progressbar( { value: parseInt($(this).attr('count')) } ); }); </script>
<div id='demo'> <div class="progressbar" count='87'></div> </div>