Title: jquery not firing at all
Tags: javascript;jquery;html
Question: Starting a new site and can't get any jquery to fire. I've tried just executing some in the console in browser to test, moved from external jquery to inside the <head&gt; and can't get anything. It isn't even seeing that first function as existing. I've a feeling it's something so stupidly simple I'm overlooking, but I'm just exhausted from looking over the same <100 lines. One of the errors I try when manually getting the width is this.
Failed to execute 'querySelector' on 'Document': '[object Window]' is not a valid selector."
Suggestions?
<!DOCTYPE HTML&gt;
<html&gt;
<head&gt;
<script href="http://code.jquery.com/jquery-1.11.1.min.js"&gt;</script&gt;
<script href="http://code.jquery.com/jquery-migrate-1.2.1.min.js"&gt;</script&gt;
<title&gt;Daniel Jenkins</title&gt;
<link rel="stylesheet" type="text/css" href="style.css"&gt;
<link href='http://fonts.googleapis.com/css?family=Libre+Baskerville:700' rel='stylesheet' type='text/css'&gt;
<script&gt;
function set_container_sizes(){
console.log("Setting div sizes");
var window_width = $(window).width();
console.log("Window is "+window_width+"px wide");
var window_height = $(window).height();
console.log("Window is "+window_height+"px tall");
$('#outer_container').css('max-height',window_height+'px');
$('#outer_container').css('max-width',window_width+'px');
}
$( document ).ready(function(){
console.log("Document now ready");
set_container_sizes();
});
$( window ).resize(function(){
console.log("Window resized");
set_container_sizes();
});
</script&gt;
</head&gt;
<body&gt;
<div id="outer_container"&gt;
<div id="inner_top"&gt;
<div id="top_head"&gt;
Daniel L. Jenkins
</div&gt;
</div&gt;Hello there       <div id="inner_bottom"&gt;
</div&gt;
</div&gt;
</body&gt;
</html&gt;
Comment: Thank you and thank you. I am planning a few interesting things. This is literally as far as I am at the moment though.

Comment: Use `src` instead of `href` when importing javascript files. Btw, your code works well: http://jsfiddle.net/oscarj24/TM35N/

Here is the accepted answer: The issue is that you are using "href" inside the script tag instead of "src".
Comment for this answer: I have no idea where I got that href from, but I feel like orbital bombardment at the moment. Thank you for that

Here is another answer: I think it should be <script src="http://code.jquery.com/jquery-1.11.1.min.js"&gt;</script&gt;

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2014:00:07/07/14', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><jquery><html>', 'Title': 'jquery not firing at all', 'ViewCount': 452, 'id': 24620773, 'user_AboutMe': '<p>One man Dev "Team" for a non-profit organization. Currently, my great undertaking is an internal staff portal. Sometimes, if I ask for help on something that\'s such a simple error, it\'s probably because of that \'one man\' part. I can\'t bounce my code off of someone to point out the flaw in that thing that made sense to me.</p>\n\n<p>Stackoverflow, I love this community. You all have helped me learn much. I can\'t wait to be much more knowledgeable to contribute back more and more.</p>\n', 'user_AccountId': 1790160.0, 'user_DisplayName': 'TechHeadDJ', 'user_Reputation': 137.0, 'user_Views': 23.0, 'user_id': 1630768.0}}