[jQuery] Re: Manipulating elements with a click

2008-01-07 Thread Yaz
Hi, Thanks! It worked after I changed "this" to $(this). Other than that, it was perfect. :) -yaz On Jan 5, 5:43 pm, Hamish Campbell <[EMAIL PROTECTED]> wrote: > Theres lots of ways to do it, eg: > > $(document).ready(function() > { > $('ul#content li a').click(function() { // binds

[jQuery] Re: Manipulating elements with a click

2008-01-06 Thread Hamish Campbell
Theres lots of ways to do it, eg: $(document).ready(function() { $('ul#content li a').click(function() { // binds a function to every link in every list object in the ul called content. $('ul#content li').removeClass('active').addClass('inactive'); // removes the class '