When runat=”server” was included in the jQuery script src statement,this error was thrown.
<script type="text/javascript" src="jquery-1.7.1.min.js" runat="server"></script>
Error 2 Unexpected character '$' C:\Users\rajesh.chandras\Desktop\MyProjects\WebSite5\jquery-1.7.1.min.js 2
Error 5 Unexpected character '\' C:\Users\rajesh.chandras\Desktop\MyProjects\WebSite5\jquery-1.7.1.min.js 2
Naturally, we do not want runat=”server” in any jquery code, which normally is meant to run on client.
No comments:
Post a Comment