Bonjour,
J'ai un tableau lié a une feuille de style css qui definit l'alternance des couleurs des lignes ainsi que la couleur rollover qui permet de colorer la ligne sur laquelle je survole.
Avec Jquery j'ai 2 functions :
une lors d'un click colore la cellule du tableau concernee
un double click colore toute la ligne.
Cela marche trs bien si je ne lie pas mon tableau à la feuille de style. Par contre si il est lié a la feullie de style le double click qui doit colorer la ligne ne marche pas. Je ne comprends pas pourquoi car la coloration de la cellule marche.
Qq un a t il une idee ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 $("#Tableau tr").dblclick(function() { if ($(this).hasClass("highlightRowOnClick")) { $(this).removeClass("highlightRowOnClick"); } else { $(this).addClass("highlightRowOnClick"); };
Merci
Partager