Re: [jQuery] get the element that called the function...

2010-01-15 Thread Charlie
lots of easy ways to do this depending on your markup. assuming that the 2 links share the a parent container as in: Other Link good Link then using .siblings() would be easy method $('.vendors a').click(function(){ //ajax $(this).siblings('a').hide(); return false; }); witho

[jQuery] get the element that called the function...

2010-01-15 Thread John Corry
I am a pretty experienced PHP programmer with a little bit of javascript experience and am LOVING jQuery. I'm working on a tool that will allow users of my app to merge vendors on their vendor edit page. Basically, if vendor names are similar, I display both vendors with a link for each. Dependin