Let's say i have a simple page that just contains a button that when clicked adds 1 to a java script num variable:
HTML:
<body>
<div>
<button type="button" onclick="someFunction()">Clicking here adds 1 to the "count" variable</button>
</div>
<br>
<div id="output"></div>
</body>
Javascript:
var count = new num;
someFunction() {
count =+ 1;
}
So my question is what would you put into the js to display the "count" varible in the div with the id "output"? do you use innerHTML? Because that doesn't seem to work....
Also, is it possible with or without jQuery?