INcreasing score on click of div
HTML
<!-- Increasing score on click of div -->
<div id="circle"> </div>
<div style="position:fixed;top:10px;right:60px;color:red;font-size:40px;">
<table>
<tr>
<td colspan="2" class="span2rows"><span>Score : 0</span></td>
</tr>
</table>
</div>
CSS
#circle{
background-color:blue;
height:50px;
width:50px;
border-radius:50px;
}
JavaScript
var score = 0;
$('#circle').click(function(){
score=score+10;
$("span:last").text("Score :" + score);
});