Christof Donat wrote:
> 
> 
> $.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');
> 
> 

I'm not worthy.

Thank you for your help :)

-- 
View this message in context: 
http://www.nabble.com/Passing-current-object-to-function-tf2360354.html#a6577870
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to