[jQuery] Re: how to assign function to $(this)

2008-01-29 Thread Karl Swedberg
Hi Bhaarat, I'm not sure what the setCookie() function, but I'm guessing that the problem lies in what you're doing inside $('#menu li a').click(). It looks like you're attaching a click handler to all of the menu links that attaches a click handler to the clicked link. A simplification of

[jQuery] Re: how to assign function to $(this)

2008-01-29 Thread Bhaarat Sharma
*dope* nevermind..got it. just calling the fucntion directly ,... On Jan 29, 11:01 am, Bhaarat Sharma <[EMAIL PROTECTED]> wrote: > Hi > > I have the following snippet to expand/collapse menu items and set the > cookie as well. > >     function initMenu() { >   $('#menu ul').hide(); >  if ($.cook