I'm trying to include jQuery in my HTML-file but I haven't succeed yet.. I know there are a lot of tutorials and stuff on the internet (and this site!) but it still won't work. This is my code in the HTML-file.
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="global.css"/>
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
<title>test</title>
</head>
<body>
<script>
$(document).ready(function() {
$("p").css("font-size:50px");
};
</script>
<p id="first">Hello there!</p>
</body>
</html>
I just don't understand why nothing is happening.. Would be awesome if someone could help me with this on!
jquery-2.0.3.min.jsfile in the same directory as the source file<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js"></script>$("p").css("font-size", "50px"););closing your DOM ready, which throws syntax error, which bricks your script. Potential cause.