WOW, Ariel, thanks!!! I owe you an apology - I'd been reading up on your plugins & ended up thinking LiveQuery was yours :o Apologies to Brandon A, too.
I would never have figured out the solution below! Cheers :)) Cherry On Apr 17, 2:17 am, Ariel Flesler <[EMAIL PROTECTED]> wrote: > Hi Cherry > > 1- Am I that Ariel ? if so, why ? > > 2- You don't need LiveQuery if no links are added to the DOM after the > page loaded. > > 3- > $('a.showlayer').click(function(e){//use the tag! > e.preventDefault();//we don't want the hash appearing in the > address > $(document.getElementsByName(this.hash.slice(1))).fadeIn( 750 ); > }); > > That should do... you said 'named' so I assume you really meant > 'named'. > If you meant named as 'id', then use $(this.hash).fadeIn( 750 ); > > Cheers > > -- > Ariel Fleslerhttp://flesler.blogspot.com > > On 16 abr, 21:25, "[EMAIL PROTECTED]" <[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"> > > > This probably should be simple, but I'm tying myself in knots! > > Would some kind person point me towards the solution, please? > > > Thank you. > > Cherry