I've added a progress bar from jQuery UI plug-in and I don't want to control it from value like this (as is the default setting):
$("#progressBar").progressbar({
value: 30.59
});
Instead I want to control it directly from my HTML. I have this code in my HTML:
<span class="counter">30.59</span>
<div id="progressBar" ></div>
And this code in my JS:
var counter = $(".counter");
$("#progressBar").progressbar({
value: counter
});
What am I doing wrong?