function toggle(div){
div.innerHTML = div.innerHTML=="0" ? 1 : 0;
}
<div id="playstop" onclick="toggle(this)">0</div>
0
solved Change number div on click
function toggle(div){
div.innerHTML = div.innerHTML=="0" ? 1 : 0;
}
<div id="playstop" onclick="toggle(this)">0</div>
0
solved Change number div on click