div background based on % in Jquery
<p>I have this in my html. I want to apply the background dynamically based on %.</p>

<p>If I pass 30, the 30% of the div should be green. If it's 60, 60% of the div should be green</p>

<pre><code>    &lt;div id="progress_bar" class="meter-bg"&gt;
        by default white
    &lt;/div&gt;
</code></pre>

<p>by default its background white. But when I click the button.</p>

<pre><code>    &lt;input type="submit" value="30"/&gt;
</code></pre>

<p>It has to apply 30% of the green color to the progress_bar. How can I do that in Jquery</p>

<p>Thanks.</p>
