My asp.net datagrid's HTML is displayed below in the browser:
<div id="divViewAlldealers" class="">
<table id="ctl00_cph1_ucMS_grdAllDealers" cellspacing="0" border="1" style="border-collapse:collapse;" rules="all">
<tbody>
<tr>
<td style="background-color: rgb(232, 246, 211);">25 - Vickar Community Chevrolet Ltd</td>
</tr>
<tr>
<td>0 - Jim Gauthier Chevrolet Ltd.</td>
</tr>
<tr>
<td>0 - Murray Chevrolet Ltd.</td>
</tr>
<tr>
<td>0 - Birchwood Chevrolet Buick GMC Ltd.</td>
</tr>
</tbody>
I need to apply a different background color to the td containing the current customer. Is there a way to identify and highlight the current customer without using jQuery's each()
function?
The position of the current customer in the list may vary and not necessarily be in the second td.
While I'm aware that this can be achieved with jQuery, I am looking for alternative solutions that don't involve the use of the each()
function.