hi, I am relatively new in jquery.I just installed and was sailing thru tutorial.But somehow i was not able to run following code $("a") .filter(".clickme") .click(function(){ alert("You are now leaving the site."); }) .end() .filter(".hideme") .click(function(){ alert('hide'); $(this).hide(); return false; }) .end();
------------ html <a href="http://google.com/" class="clickme">I give a message when you leave</a><br/> <a href="http://yahoo.com/" class="hideme">Click me to hide!</a><br/> <a href="http://microsoft.com/">I'm a normal link</a><br/> i installed the latest version. Can someone explain where i might be missing. Regards, Priti