I have two listivew webparts on a page. One webpart is connected to another. i.e. It takes filter values from the first webpart so that when I select an item in first webpart (say Foo1) , it displays the corresponding item for the other webpart (foo2). I want to highlight the selected item in Foo1.
For this I have used the jquery
$("table[summary='Foo']").find("img[alt='Selected']").closest("tr").css("background-color","yellow");But the problem with this is that everytime I paginate or filter or sort the webpart Foo1 , the selected item loses the background color.
How do I fix this?