I can't seem to figure out a way of increasing value of SPAN based on checkboxes checked. For example I have 3 checkboxes
<input type="checkbox" class="cbox" id ="one"/>One
<input type="checkbox" class="cbox" id="two"/>Two
<input type="checkbox" class="cbox" id="three"/>Three
<span id="increment-me">10</span>
And I need to figure out a way of increasing value in real time by X amount based on checkboxes clicked. For example by 5 if #one is checked,and by 7 more if #two is checked etc.
Aucun commentaire:
Enregistrer un commentaire