store the progress of progress bar in database using javascript and php -


i have multiple checkboxes, onclick upgrades progress bar, , have submit button , when b clicked updated progress should stored.

like have 2 different chapters, in each 1 contains 10 topics , each 1 having individual progress bar, , each 1 have tasks check box, if checkbox checked progress increased , particular chapter progress increase , overall of both chapter's progress increase.

bt if logout without completing whole process, should store progress upto whatever percent has been done, individual topic overall project , particular chapter.

rite storing progress when log out not stores , shows left.!!

$(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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -