[jQuery] Re: newbie - need help finding element

2007-12-14 Thread MorningZ
"$('#img'+j).fadeIn("slow"); // fade in selected image (this is what doesn't work, obviously)" Did you notice that no where did you define or set variable "j" ? On Dec 5, 8:15 pm, HXn <[EMAIL PROTECTED]> wrote: > Hi, I'm brand new to jQuery. Here's what I'm trying to achieve: > > I have an

[jQuery] Re: newbie - need help finding element

2007-12-13 Thread Marc Jansen
Hi, try this: (untested) $( document ).ready( function (){ $('#gallery ul li').click( function () { // resetting other images $( '#gallery ul li' ) .removeClass('selected') .removeClass('thumb-hover') .find('img').fadeOut('slow'); // show