How to select one specific child when hovering parent using jquery?
I want to change the color of the child when the parent hovers. The problem is, with the code below, the child (label color) changes for all columns, and I only want it to change for that particular column. I guess I need to use 'this' in some way to make this work? Failed to get this to work so far.
jQuery('.col-proposal').hover(function () {
jQuery('.col-proposal .label').css('color', 'green');
}, function () {
jQuery('.col-proposal .label').css('color', 'white');
});
+3
source to share