I have this function which changes the class of a row on mouseover:

function tableHover( tableClass, hoverClass) {
                $("."+tableClass+" tr").mouseover(function(){
                  $(this).addClass(hoverClass);
                  rowAction(this);  // NOT RIGHT
                }).mouseout(function(){
                  $(this).removeClass(hoverClass);
                });             
}

function rowAction(row) {
        var href= $(row).attr("href");          
        //alert(href);
}

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.

How do I get the rowAction() to take the value of the current row?
-- 
View this message in context: 
http://www.nabble.com/Passing-current-object-to-function-tf2360354.html#a6575927
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to