Bonjour,

Je suis débutant javascript et j'aurais besoin de savoir comment faire :

j'ai deux bouton radio et quand j'en sélectionne 1 je souhaiterais que le span qui l’entoure affiche en fond une image quand le bouton radio est sélectionné.

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<span class="choix_1">
   <input type="radio" name="filter_transaction_type">
   <label for="jea-search-selling5200fd1b78335">Vente</label>
</span>
 
<span class="choix_2">
   <input type="radio" name="filter_transaction_type">
   <label for="jea-search-renting5200fd1b78335">Achat</label>
</span>


Merci de votre aides et de vos explications.