[jQuery] Re: Binding Events on a Click

2009-07-16 Thread James
Here's an example (untested): http://link1.com"; class="link">Link 1 Hidden Text 1 http://link2.com"; class="link">Link 2 Hidden Text 2 http://link3.com"; class="link">Link 3 Hidden Text 3 $(function() { $(".a.link").click(function() { $(this).next('div').show(); // you might

[jQuery] Re: Binding Events on a Click

2009-07-16 Thread Liam Byrne
Option 1 : set the target of the link to "_blank", bind the text reveal, and return true so that the natural href triggers Option 2 : bind the text reveal, adding a window.open($(this).attr("href")) to the code L pinman wrote: Thanks for the response Liam - at least I now know it's possible

[jQuery] Re: Binding Events on a Click

2009-07-16 Thread pinman
Thanks for the response Liam - at least I now know it's possible :) Trouble is I wouldn't know where to start coding it - do you have any examples you could point me to please? Most of the ones I have found via Google refer only to the 'text reveal' bit of the code - not about how to actually bi

[jQuery] Re: Binding Events on a Click

2009-07-16 Thread Liam Byrne
Yup, add then click, and use the return value (normally false to stop the HREF triggering) to allow the HREF to continue (i.e. return true in the function) But if you're revealing a password like this, it won't be very secure, because something "HIDDEN" is still there in the "View Source" L