I have a Javascript function in a separate jsp file: (used <jsp:include> for file inclusion)
function tickMembership(code){}
when invoked using onclick in an html element, the following error occurs:
Uncaught ReferenceError: tickMembership is not defined
Any idea on how this might happen? The script is there even when inspecting the sources in the browser. I am using Google Chrome.