Good morning all , here is my problem. I would like to change the background color of the blocks via my html file. Currently the color is declared in the css file. the idea when they make a choice in a list it will change the background color (ethics). Bonjour a tous , voici mon problème. jaimerais changer la couleur de fond des bloc via mon fichier html. Actuelllement la couleur est déclarée dans le fichié css. l'idée lorsque ils font un choix dans une liste cela changera la couleur du fond (éstéthique). Code actuel CSS .charsheet { font-family : "Segoe UI" , Arial ; min-width : 830px ;
--fond: RGB(100,0,100) padding-left : 20px !important ; padding-right : 20px !important ; } Html liste < label > < span > Maison </ span > < select name = "attr_Maison" > < option value = "0" selected ></ option > < option value = "1" > Gryffondor </ option > < option value = "2" > Serpentard </ option > < option value = "3" > Poufsouffle </ option > < option value = "4" > Serdaigle </ option > </ select > Javascript on( "change:Maison sheet:opened" , function() { getAttrs(["Maison"], function(value) { const Maison = parseInt(value["Maison"], 10)||0; if(Maison == 0) { ? } if(Maison == 1) { ? } if(Maison == 2) { ?? } if(Maison == 3) { ?? } if(Maison == 4) { ?? } }); }); Merci d'avance pour vôtre aide