Using JQuery, I am trying to set the percentage of a div’s id value and write it to another div.
Here is my current code…
$("#percentage").text(
parseFloat($("#total").text(percentage calculation here?))
);
So, if #capacity had a value of 100 and #total had a value of 10 then the value of #percentage would be 10
How can I get this result?
Hope this makes sense
FIDDLE