[jQuery] Re: set default action for all links

2008-11-21 Thread Richard D. Worth
On Fri, Nov 21, 2008 at 11:28 AM, Pierre Bellan <[EMAIL PROTECTED]> wrote: > Hi, > > I don't know what lightbox is but it's not important. > Like you said, you just need an selector for all links. > > $('a').click(function(){ > myUrl = $(this).attr('href'); > openLightbox(myUrl); > }); Don't for

[jQuery] Re: set default action for all links

2008-11-21 Thread Pierre Bellan
Hi, I don't know what lightbox is but it's not important. Like you said, you just need an selector for all links. $('a').click(function(){ myUrl = $(this).attr('href'); openLightbox(myUrl); }); I think this code works, but i have not test it. Pierre Yogi Berra - "I never said most of the thin