php - show progress in progress tag fetched from database -
this following javascript code. want show stored progress fetched database , add further progress on completion of task in shown progress.
$(function() { $("#prog").progressbar({ value: 0, max: 96, textformat: "fraction", }); $(".box").on("change", function() { var total = 0; $(".box:checked").each(function() { total += parseint($(this).val()); document.getelementbyid("e1").value= total; if(total < 96){ document.getelementbyid("e1").innerhtml=total+"%";}else{ document.getelementbyid("e1").innerhtml="100%"; } e1.innerhtml = e1.innerhtml +"<input type='hidden' name='seb' value="+total+">"; }); $("#prog").progressbar("value", total); }); });
Comments
Post a Comment