I have a problem running my jsp pages.
My jsp pages has reference to some .js file say (file1.js) and in file1.js I’m invoking the jquery calls like $(document).ready. The IE browser is complaining about the error:
SCRIPT5009:
'$' is undefined file1.js, line 225 character 1
I see the same exception on Firefox as well.
I have included the <script src="http://code.jquery.com/jquery-latest.js"></script> and also <script type="text/javascript" src="/js/file1.js"></script> in my jsp.
file1.jsappend to document after jQuery library load (if you already add it).Add jQuery library like following before any other js load
And one important note
Don’t forget to place all your jQuery code within
in short