I keep on getting this error when using this code. SRC --> http://jsfiddle.net/MYG2C/1/
JS
<input class="menu1" type="submit" value="Total : 0.00" onclick="m.getTotal()" id="total" />
HTML
var m = {
total:0,
getTotal: function () {
this.total = this.total.toFixed(2);
document.getElementByID("total").value = "Total : " + this.total;
},
}
m.total = 5;
//Clicking the button should now update the text on the button.