On Apr 16, 2008, at 5:25 PM, [EMAIL PROTECTED] wrote: > > Hello there :) > > I've got a bit stuck. I suspect this is a job for Livequery, but can't > understand how to use it (sorry, Ariel). > > With this: > $( '.showlayer' ).click( function () { > $( '#div1 ).fadeIn( 750 ); > > I'm trying to make each link with a class of 'showlayer' show the div > which is named in its href: > <a href="#div1" class="showlayer">
$('.showlayer').click( function() { var target = $(this).attr('href'); $(target).fadeIn(750); });