• Post Reply Bookmark Topic Watch Topic
  • New Topic

retain row highlighting after selecting a row in datatable  RSS feed

 
Aparna Ram
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the below code to highlight a row on mouse over and reset it on mouse out.
Now, when I click on a row, a hidden button is clicked, but I also want the highlighting to remain on the clicked row.
If I comment the line where the hidden button is clicked, the highlighting is retained. But if it is uncommented, the highlighting disappears and focus moves to the top of the datatable.

What should I do?? Kindly help.

 
Ravi Sankar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to use onmouseover, onmouseout functions in jsf datatable. I wrote a code for identifying the rows like
tableObj.getElementsByTagName('tr'). But, it doesn't take the style sheet functions. Can you help me how to implement this?
 
Ravi Sankar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to implement onmouseover, onmouseout functions in jsf datatable. I wrote code for iterating the rows inside the datatable. But, it doesn't accept the stylesheet functions inside the script. Can you help me to solve this issue?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!