Skip to content Skip to sidebar Skip to footer

My JQuery Won't Work On My Webpage

All of my HTML and CSS code works fine, and my script is properly linked (or so I assume), but I can't get the script to load or do any actions I've coded. Here's my HTML, CSS, and

Solution 1:

Add this to the HTML head (before you include your script):

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Solution 2:

You have to add more jQuery

<!DOCTYPE html>
<html>
    <head>
        <title>Highlights</title>
        <link rel='stylesheet' type='text/css' href='testwebcss.css'/>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script type='text/javascript' src='testwebjs.js'></script>

    </head>
    <body>
        <div id="title" class="highlighted">I'm highlighted!</div>
        <div id="text">Highlight me, too!</div>
    </body>
</html>

Post a Comment for "My JQuery Won't Work On My Webpage"