ligne de table en surbrillance sur le bouton cliquez sur
Dans ce tableau, l'objectif est de mettre en évidence la ligne à la radio sélectionnée lorsque le bouton « En attente » ou « Accompli » est cliqué. La couleur de surbrillance correspondrait au bouton cliqué. Jusqu'à présent, j'ai seulement appris à mettre en évidence la ligne lorsque la ligne est sélectionnée.
<table id="maintenance_table" class="table table-striped table-bordered" cellpadding="0" width="100%">
<thead>
<tr>
<th></th>
<th>#</th>
<th>Complex</th>
<th>Unit#</th>
<th>Date Requested</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><input type="radio" class="radioBtn" name="selectRow" value="checked" /></th>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
Mon CSS pour incorporer les couleurs de surlignage
.highlight_row_pending {
background-color: #DCAC61;
}
.highlight_row_accomp {
background-color: #67A8DA;
}
Où est votre code pour mettre en évidence la ligne sélectionnée? – hungerstar