Author: slac3dork
Site: http://snippet.c0de.me
Summary: Click counter with jQuery framework.
<html>
<head>
<title>Twitter like text area</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var total_click = 0;
$("#clickMe").click(function(){
total_click = total_click + 1;
$("#counter").text("Total Click: " + total_click);
return false;
});
});
</script>
</head>
<body>
<form>
<div id="counter">Total Click: 0</div><br />
<a id="clickMe" href="#">click me!</a>
</form>
</body>
</html>




