Table column highlighting with jquery
in one of my recent projects i needed to highlight a table row and column of a html table on mouseover.
i found out that it's quite simple to do in jquery - even without a plugin.
first you have to find out in which column your mouse pointer currently is.
var idx = $(this).parent().children('td,th').index( $(this))+1;
and then you mark all the td's and th's in the table with the same column index
$('td:nth-child('+idx+')').addClass( 'hover' );
$('th:nth-child('+idx+')').addClass( 'hover' );
click here to download a simple example project.
See also:
Lightbox-Effekt for Processing-Sketches
calling webservices from mootools, jquery or dojo
Bitwig Studio Controllerscript for SoftStep2
A Bitwig-Studio Controller Script for Yamaha MX49 and MX61 (Version2)
Javascript and Typescript link-collection
calling webservices from mootools, jquery or dojo
Bitwig Studio Controllerscript for SoftStep2
A Bitwig-Studio Controller Script for Yamaha MX49 and MX61 (Version2)
Javascript and Typescript link-collection
Your link to download the simple example project is broken.
Thanks,
Jayde.
Thanks for the info, the download-link is fixed