Dave's Brain

Browse - Programming Tips - How can I change icons in a table row when the mouse is over?

Date: 2014apr5
Language: javaScript
Library: jQuery
Platform: web

Q.  How can I change icons in a table row when the mouse is over?

A.  Use jquery's hover() like this:

Add a class to each table row:

<tr class=oneitem> .... </tr>
Search for it and turn it on:
$('.oneitem').hover(enableIcons, disableIcons);
Make enableIcons() and disableIcons() yourself.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.