Here is one way.  There are alot of ways to do this.
http://commadot.com/jquery/tableClick.php

You could populate the expandos out of an array.
You could do an each to iterate through the TRs and add the click.

Glen

On 10/20/07, crybaby <[EMAIL PROTECTED]> wrote:
>
>
> I need to have each table rows point to different link.  I am looking
> at table striping and how hover works in 15daysofjquery.com.
>
> http://15daysofjquery.com/table-striping-made-easy/5/
>
> I need to make the whole table row clickable and should take the user
> to a different link on the site.
> How do I do this in jquery?
>
> For example table is as follows:
> <table border="1">
> <tr><td>Row 1 Cell 1</td><td>Row 1 Cell 2</td></tr>
> <tr><td>Row 2 Cell 1</td><td>Row 2 Cell 2</td></tr>
> </table>
>
> Row1 link: site.com/tutorial/1
> Row2 link: site.com/tutorial/2 and so on.
>
>

Reply via email to