mercredi 25 novembre 2015

simplest jquery test doesn't work

for some reason I just want to check if my jQuery loaded, but it doesn't work even though the src file in the script is a good link, any ideas?

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Demo</title>
</head>
<body>
    <a href="http://jquery.com/">jQuery</a>
    <script src="C:\wamp\www\jquery-test\jquery-1.11.3.min.js"></script>
    <script>

    $( document ).ready(function() {
        $( "a" ).click(function( event ) {
            alert( "The link will no longer take you to jquery.com" );
            event.preventDefault();
        });
    });

    </script>
</body>
</html>

Aucun commentaire:

Enregistrer un commentaire