Hi Sharique,

It looks like you are loading jquery twice. jquery.js and jquery.pack.js are the same thing, the .pack.js is just a smaller version of the file. Remove one of your script src tags and it should work.

Regards,

David

Sharique wrote:
I'm newbie to jquery
I have written a simple page for test. Here is the code. It only run
in opera 9.2 ,in IE7 and firefox 2 it doesn't work. Why?
--------
<head>
  <title>Untitled Page</title>

  <script type="text/javascript" language="javascript" src="jq/
jquery.js" />
  <script type="text/javascript" language="javascript" src="jq/
jquery.pack.js" />

  <script language="javascript" type="text/javascript">
    $(document).ready(function() {
   $('a').click(function() {
     alert("Hello world!");
   });
 });

  </script>

</head>
<body>
  <a href="#">Hello.</a>

</body>
</html>

----------



.

Reply via email to