[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-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 's in between the clicked li and the toggled li. The full code looks like this: date name Region Location Event summary to be hidden and displayed date

[jQuery] Re: Passing a variable to a function

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

[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 MorningZ
So, and if am understanding correctly... you have this html an are after some sort of accordion like behavior Event 1 Name Summary of Event 1 Event 2 Name Summary of Event 2 Event 3 Name Summary of Event 3 Event 4 Name Summary of Event 4 etc etc.. and