Hm... Everything seems to be OK (except break lines in the code). Try this one, it should work.
<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("a").click(function() { alert("Hello world!"); }); }); </script> </head> <body> <a href="">Link</a> </body> </html> On Oct 5, 8:42 am, samr <[EMAIL PROTECTED]> wrote: > I just started on with jquery using > Firefox - 3.0.3 > Firebug - 1.2.1 > > The helloworld example using jquery is not loading with firebug and > just keeps on cycling. > I have disabled all plugins, still the result is same. > > The firebug script seems to be stuck at line #679 > "jQuery.cache[ id ][ name ] :" > > Following is the html: > > <html> > > <head> > <script type="text/javascript" src="jquery.js"></script> > <script type="text/ > javascript"> > // we will add our javascript code here > $(document).ready(function() { > // do stuff when DOM is ready > > $("a").click(function() { > alert("Hello world!"); > }); > > }); > > </ > script> > </ > head> > > <body> > <!-- we will add our HTML content here -- > > <a href="">Link</a> > </ > body> > </html> > > What am I missing ? > > Thanks, > > Samy.