Link to home
Start Free TrialLog in
Avatar of Webspeeder
WebspeederFlag for United States of America

asked on

Using jQuery livequery to highlight a table row

I'm trying to highlight a row with jQuery and plugin livequery. I can do it fine if the table is loaded into the page initially, but if I try to dynamically load the table, the livequery is not working.

Is this possible? I've googled it but I don't see any examples doing what I need to do. Normally I would use the jQuery plugin flexigrid which handles it by binding the rows as they are appended but that is not what I want to do.

I want to be able to have a page loaded, click a link to display table data and onclick of the rows in that table, highlight the clicked row and remove the highlight from any previously clicked rows.

????
$('#tableid tbody tr ').livequery('click',function(e){
        
    ... take action here ...
        
});

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of JF0
JF0
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Webspeeder

ASKER

I've been using livequery for a long while now, maybe it was replaced by live. .live worked though.

Thanks for the info.