[jQuery] Re: Toggle on TR.onclick but not on content link

2007-12-06 Thread Freud
Hi Karl, Thanks a lot, that's exactly what I needed. Freud -- View this message in context: http://www.nabble.com/Toggle-on-TR.onclick-but-not-on-content-link-tf4956507s27240.html#a14208303 Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: Toggle on TR.onclick but not on content link

2007-12-06 Thread Karl Swedberg
Hi Freud, You might want to try adding an "event" argument to the click handler: $(document).ready(function() { $("tr.clickme").click( function(event) { if ( !$(event.target).is('a') ) { var ids = $(this).attr('id').split('_'); var id = (ids[(ids.length-1)]); $(