[jQuery] Re: how to select the content of the current table row?

2008-12-22 Thread Cam Spiers
var rows = jQuery(tbody tr); rows.each(function(){ var row = jQuery(this) row.click(function(event){ alert(row.children(td.hidden_url_field_for_track_list).text()); }); }); Haven't tested but you could try something like this maybe. On Tue, Dec 23, 2008 at 11:40 AM, j0llyr0g3r

[jQuery] Re: how to select the content of the current table row?

2008-12-22 Thread Cam Spiers
var rows = jQuery(tbody tr); rows.each(function(){ var row = jQuery(this); row.click(function(event){ alert(row.children(td.hidden_url_field_for_track_list).text()); }); }); Sorry I missed a semicolon.. On Tue, Dec 23, 2008 at 12:21 PM, Cam Spiers camspi...@gmail.com wrote: var rows =

[jQuery] Re: how to select the content of the current table row?

2008-12-22 Thread j0llyr0g3r
Cam Spiers, thank you very much, i adapted your really helpfull example and solved it like this: function clickOnTableRow() { var row = jQuery(this); var songUrl = row.children(td.hidden_url_field_for_track_list).text (); // do other