Sorry i'm still not getting it to work.. Thanks for your reaction btw!
Could you maybe fit it in my code? As i put before this is the function, i have two of those, one that adds a point to the score of one of the four players, and one that reduces one point.
Code:
function pluspuntspeler1(){
var puntenspeler1=parseInt(sessionStorage.getItem('puntenspeler1'));
var pluseen =puntenspeler1+1;
sessionStorage.setItem('puntenspeler1',pluseen);
}
The buttons looks like this:
HTML Code:
<input id="radio1" name="langstnietsgedaan2" value="speler1" type="radio" onchange="plusuntspeler1();">
<label for="radio1" id="naam1c">
</label>
<input id="radio3" name="langstnietsgedaan2" value="speler3" type="radio" onchange="plusuntspeler2();">
<label for="radio3" id="naam3c">
</label>
Bookmarks