Welcome Guest, Not a member yet? Register   Sign In
how to make the table rows into links?
#7

[eluser]Colin Williams[/eluser]
Not so sure a whole table row can be hyperlinked, but I may be wrong. The other option is to do some javascript that drills <tr> clicks down to the first child <a>

Code:
// jQuery
$('.data tr').click(function(){$('a', this).eq(0).click()});

Some browsers might not fire the click event for <tr> though, so you might need to get even trickier, using <td> clicks instead (td > parent tr > first a)


Messages In This Thread
how to make the table rows into links? - by El Forum - 11-03-2009, 07:08 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 07:13 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 07:35 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 07:45 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 10:21 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 10:47 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 11:02 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 11:24 AM
how to make the table rows into links? - by El Forum - 11-03-2009, 08:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB