You need to add "return false":

$("#pnav li a").click(function(){
       $("#article").slideUp("slow");
       return false;
});


Also, you should be able to post w/o moderation now.

Mike

On 8/26/07, atomicnuke <[EMAIL PROTECTED]> wrote:
>
> I have the following code and was wondering how you stop a link from
> forwarding to the url when clicked? I'd assume it'd go inside the
> click, but couldn't find a way looking through the Visual jQuery.
>
> $("#pnav li a").click(function(){
>         $("#article").slideUp("slow");
> });
>
> Also, not sure if anyone will get this message. This is the 3rd
> response/post I've tried that has not appeared. I've waited to see if
> they post, but never do.
>
>

Reply via email to