Don't declare "page" in the function argument for the slideUp
callback.  You're overriding the page you declared above which is
already in scope.

Mike


On 8/26/07, atomicnuke <[EMAIL PROTECTED]> wrote:
>
> I'm trying to get the text of what I clicked for later in the
> function, but can't seem to pass it.
>
> $("#pnav li a").click(function(){
>         var page = $(this).text();
>         $("#article").slideUp("slow", function(page){
>                 alert(page);
>         });
>         return false;
> });
>
> If I test the alert before I go into the slideup it works, do you have
> to pass it a different way or am I doing it right just wrong, lol?
>
>

Reply via email to