How To Update JQuery Progress Bar Value from a Variable
<p>I have a Problem Regarding the JQuery Progress Bar.</p>

<p>I Need to set the Value of the Progress bar with the Value stored in a Javascript Variable.</p>

<pre><code> $(document).ready(function () 
{
    var text = $('.Gadget').find('input[name="Percentage"]').val();


 $(function() 
{
    $( ".ProgressBar" ).progressbar({
    value: 59
});

});
</code></pre>

<p>});</p>

<p>The Above code works fine, but as there is Value 59 the value is always Constant. </p>

<p>What I Really need is that instead of the 59, there will be the value of the text Variable.</p>

<p>Note: if I Put Value:text, the Progress bar disappears</p>

<p>Thank You,
Andrew Borg</p>
