Not sure exactly - did you remember to put it in a
$(document).ready(function(){ ... }) block?

--John

On Dec 12, 2007 3:31 AM, priti <[EMAIL PROTECTED]> wrote:
>
> 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
>

Reply via email to