I have this in my html. I want to apply the background dynamically based on %.
If I pass 30, the 30% of the div should be green. If it's 60, 60% of the div should be green
<div id="progress_bar" class="meter-bg">
by default white
</div>
by default its background white. But when I click the button.
<input type="submit" value="30"/>
It has to apply 30% of the green color to the progress_bar. How can I do that in Jquery
Thanks.