I have done something similar to this before, and I know this is really close. I\'m just trying to make it so that my button increments the javascript variable, and the func
After looking at the code you're having typos, here is the updated code
var clicks = 0; // should be var not int
function clickME() {
clicks += 1;
document.getElementById("clicks").innerHTML = clicks; //getElementById() not getElementByID() Which you corrected in edit
}
Demo
Note: Don't use in-built handlers, as .click() is javascript function try giving different name like clickME()