<script type="text/javascript" src="jquery-latest.js"></script>
Örnek bir html dosyası ile nasıl bir yol izleyeceğimizi ele alalım...
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
//Kodumuzu buraya yazacağız...
</script>
</head>
<body>
<a href="http://www.volkankorkmaz.com/">jQuery ve Ben</a>
</body>
</html>
$(document).ready(function() {
$("a").click(function(event) {
alert("Simdi Yonlendiriliyorsunuz...");
});
<style type="text/css">
a.test { font-weight: bold; }
</style>
event.preventDefault();
$(this).hide("slow");