Possible Duplicate:
“uncaught TypeError: Object is not a function” in JavaScript
my full js file is this:
function addInning() {
alert("hello");
}
my html file has the element
<input name="addInning" type="button" value="Add Inning" id="addInning" onclick="addInning();">
and the code will not execute. for the life of me i cannot figure out why, as this is just about the simplest thing possible. the error from chrome is “Uncaught TypeError: object is not a function”. I searched on stackoverflow and the solutions posted have not been helpful. i feel like i’m losing my mind.
full code here: http://jsfiddle.net/BUsPC/
Change the name and id from “addInning” to something else. This worked for me.