jquery: set variable based on one class from an element that has more than one class
- by John
Hi
I'm trying to make a table who's columns and rows highlight on hover (I realise there are jquery plugins out there that will do this, but I'm trying to learn, so thought I'd have a stab at doing it for myself.)
Here's what I've got so far:
$('th:not(.features), td:not(.features)').hover(highlight);
function highlight(){
…