[jQuery] Re: Passing a variable to a function

2008-10-02 Thread [EMAIL PROTECTED]
HI, Thanks for your response, it's a good answer and works in the case you describe. Unfortunately I've got 2 more li's in between the clicked li and the toggled li. The full code looks like this: ul li class=evdatedate/li ll class=evnamea href=#name/a/li li class=evregionRegion/li

[jQuery] Re: Passing a variable to a function

2008-10-02 Thread andrewsquidge
Hi guys, this is the answer to how to pass a variable to a jquery function and perform an action on a dynamic list. http://www.learningjquery.com/2006/09/slicker-show-and-hide#comment-60792 http://www.learningjquery.com/2006/09/slicker-show-and-hide#comment-60792 [EMAIL PROTECTED] wrote:

[jQuery] Re: Passing a variable to a function

2008-10-01 Thread MorningZ
So, and if am understanding correctly... you have this html an are after some sort of accordion like behavior ul li class=evnameEvent 1 Name/li li class=evsumSummary of Event 1/li li class=evnameEvent 2 Name/li li class=evsumSummary of Event 2/li li class=evnameEvent 3

[jQuery] Re: Passing a variable to a function

2008-10-01 Thread amidude
I'm new to jquery as well. But I'm wondering if something like this wouldn't work. $(function() { $(.evname a).click(function() { $(this.hash).slideToggle(500); return false; }); }); You would, of course,

[jQuery] Re: Passing a variable to a function

2008-10-01 Thread Steve Schnable
How can I subscribe it? Steve