Can I ask on how to attack this function (total score - par score). But it's tricky because if a hole hasn't been played the par should not be subtracted from current score. Here's what I've tried so far with hidden fields:
$("#scorecard").change(function() {
var totalscore = 0;
$("#scorecard input:hidden").each(
function() {
totalscore += parseInt($(this).val())
});
$("#score").val(totalscore * -1);
}).change();