I am having difficulty getting jQuery to load at all. I'm writing prototype in notepad++ and using Coffee Cup to rebuild my old site.
After googling multiple forums and correcting multiple items, I end up with good code that just won't load. I checked out "6 Things to Do When jQuery Doesn't Work." My script tag at the beginning has <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery1.9.1/jquery.min.js">
Here is what I've tried so far:
- W3schools
- Forays into your forum questions on the load() function.
- Setting it up in jsfiddle.net. It passes the script itself but there is no result.
- Logging into my sysadmin account on my local machine in case there is some administrative prohibition against deploying script. I will try local group policy.
- Checking my Norton 360 software for script interception.
- Doing a script with plain Javascript. It works.
- Checking all browsers to make sure Javascript is enabled. It is.
Here is my code. The jQuery is a plain css function that will color all the div boundaries red. I'm writing in css3 and html5. I included all the meta stuff under the doctype in case that is interfering. Also, even though html5 doesn't need text=javascript, Firefox seems to want this. Also, there is an opening script tag. Just won't display.
<script (see google source above)>
$(document).ready(function(){
$("div").css("border", "3px solid red");
});
</script>
</head>
<body>
<div id="shalom">Shalom</div>
<div id="wrapper">
<p>"LoremLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do </p>
</div>
<div>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi</p>
</div>
</body>
</html>
` tags were only present for asking this question and not in your actual HTML.
– Matt Ball Mar 11 '13 at 21:40