I’m beginner in jquery.this is my first application.
<head>
<title>Untitled Document</title>
<script type="text/javascript" src="../jquery-1.6.2.min.js"></script>
<script type=”text/javascript”>
$(document).ready(function(){
$("a").click(function(){
alert("Hello World");
});
});
</script>
</head>
<body>
<a href=”#”>Click me!</a>
</body>
</html>
but when i click on Click me the alert doesn’t showed.what is problem?
(the lib address(src="../jquery-1.6.2.min.js) is correct )
You have odd quotes in some of your code:
”vs."That could be causing your problem. Change them all over to regular double quotes
"EDIT: Tested it, it’s the funny quotes around
text/javascriptspecifically but the other should be fixed too.