Question: uncaught referenceerror function is not defined in html?
Answer: Re: Uncaught ReferenceError: function is not defined 8 years ago. a function defined within another function will not have scope outside of the parent function. If a() is not being called when page loads there is no need for it to be inside document.ready.