Hi,
> I'm attempting to get the href element for the first link it finds and then
> set that as the url for the entire row's on-click event.
Do you mean something like this?
$.fn.tableHover = function(hoverClass) {
$("tr",this).click(function() {
window.location.href = $(this).find('a')[0].href;
}).hover(function() {
$(this).addClass(hoverClass);
}, function() {
$(this).removeClass(hoverClass);
});
}
$('table').tableHover('myHoverClass');
Christof
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/