Hi there! I'm new to jquery and trying to enhance the functionality of my application which has multiple HTML tables in JSP's. My goal is to use jQuery to dynamically apply a CSS style class when hovering over a row. Currently, I have the following code:
$("tr").not(':first').hover(
function () {
$(this).addClass("rowHighlighter");
},
function () {
$(this).removeClass("rowHighlighter");
});
However, this code applies the class to all tables, and I want to add a condition to only apply it to rows within a table with a specific ID. Any suggestions or ideas would be greatly appreciated. Thank you!