> I'm having a problem running the first simple example in this > tutorial. here is my code: > > <html> > <head> > <script type="text/javascript" src="js/jquery.js"></script> > > <script type="text/javascript"> > > $(document).ready(function(){ > $("a").click(function(){ > alert("Thanks for visiting!"); > }); > > }); > </script> > </head> > <body> > <a href="http://jquery.com/">jQuery</a> > </body> > </html> > > Seems pretty simple but does not work for me in IE 7, firefox, or > Opera. I am running this in IIS on my XP Pro box. IE just gives me > the error Object Expected.
What errors are reported in the FF or Opera error console? The most likely problem is that the jQuery library is not loaded. Are you certain that the path is correct? Try changing your inline script to the following and see what gets alerted: <script type="text/javascript"> alert ( typeof jQuery ); </script>