You arent supposed to include both the packed and the unpacked versions, just remove the link that includes jquery.pack.js and it should work fine. On 4/13/07, Sharique <[EMAIL PROTECTED]> 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> ----------