diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index ef92c84817e..337a0dd18c8 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -10994,8 +10994,9 @@ class Form
}
$out .= ' });
$(".' . $cssclass . '").change(function() {
- $(this).closest("tr").toggleClass(this.checked);
- });
+ console.log("We change tr class highlight");
+ $(this).closest("tr").toggleClass("highlight", this.checked);
+ });
});
';