Я использую bob tabors jQuery video tutorial here в течение довольно долгого времени, и я не могу заставить jQuery работать.jQuery не работает для новичков
Вот мой HTML
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" type="text/css" href="main.css" />
<title>14. Getting Started with jQuery</title>
</head>
<body>
<h1 id="title">14. Getting Started with jQuery</h1>
<p id="first">
<span>Now is the time for all good men to come to
the aid of their country.</span>
</p>
<p id="second">
<strong>In the end these things matter most:
How well did you love? How fully did you live?</strong>
</p>
<p id="third">
<a id="myAnchor" href="http://www.learnvisualstudio.net">Visit my website</a>
</p>
</body>
</html>
и вот мой JS
jQuery(document).ready(function() {
alert("thsdjasl");
}
Но после того, как HTML, оповещение не приходит.
является 'jquery.js' источником jQuery или js, который вы показываете в нижней части вопроса? –
проверьте свою консоль ... вам не хватает ');' – Syjin