[jQuery] jQuery handlers getting varibles from caller...

[jQuery] jQuery handlers getting varibles from caller...


I'm trying to figure out the best way to pass variables into jQuery
using unobtrusive javascript...
For example:
Clicking a column row takes you to a URL.
    <table>
        <tr class="addNavigation" id="http://www.google.com">
            <td>blah</td>
        </tr>
    </table>
---
    $("tr.addNavigation").click(function() {
            window.location=$(this).attr("id");
            return false;
        });
As you can see, this uses the ID tag of the TR element but this is not
a very good solution. What if two rows go to the same URL? Then I'm
breaking a major rule with ID's (that they shouldn't be duplicated
across a page)...
Anyone have any ideas as I'm fairly new to jQuery and completely
unobtrusive code.