Skip to content

Instantly share code, notes, and snippets.

<html><head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
function tally (selector) {
$(selector).each(function () {
var total = 0, average = 0, symbol = '', sums = 0,
column = $(this).siblings(selector).andSelf().index(this),
sym = function (match) {