[jQuery] Re: simple question regarding the 'this' keyword

2009-08-10 Thread svanhess
I would suggest removing the thmb1, thmb2, thmb3 classes and use a static class like thmb so you can create a single function that handles all of your links. You can then create a single function to grab the src attribute of the child img tag and load up the hi res version of the image. For

[jQuery] Re: simple question regarding the 'this' keyword

2009-08-10 Thread amuhlou
to get you started, you can use the each method, something like $('#carousel ul li a').each( function(){ //$(this) equals the current a element var src = $(this).children(img); //do other stuff here } ); On Aug 10, 2:24 am, svanhess