I am getting a JavaScript error in my browser whenever I am trying to add the following two lines in the section of my application home page:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<%=request.getContextPath()%>/resources/jq/jquery-1.10.2.min.js"></script>')</script>
Can someone please tell me what is wrong in those two lines? and if possible how to fix it?
Thanks for your time
<script>tags will break the browser.