How can I implement a feature in my HTML page that highlights a row when selected by changing the row color to #DFDFDF?
If another row is selected, I would like the previously selected row to return to its original color and the newly selected row to be highlighted.
Note that I want the top header to be exempt from this color changing behavior.
You can view the fiddle here: http://jsfiddle.net/q42L2/
Thank you in advance for your assistance.
<div id="results" class="scrollingdatagrid">
<table id="mstrTable" cellspacing="0">
<thead>
<tr>
<th>File Number</th>
<th>Date1</th>
<th>Date2</th>
<th>Status</th>
<th>Num.</th>
</tr>
</thead>
<tbody>
<tr>
<td>KABC</td>
<td>09/12/2002</td>
<td>09/12/2002</td>
<td>Submitted</td>
<td>0</td>
</tr>
... more table rows ...
</tbody>
</table>
</div>