Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82462

Change <tr> color

$
0
0
Hi,
i`m using ajax to display the data of my table, if i load the data like:
 <th>id</th>
                        <th>Customer Number</th>
                        <th>WCODE</th>
                       
                    </tr>
                </thead>
                <tbody>
                    <?php
                    while ($row = mysql_fetch_array($result)) {
                        ?>
                        <tr style="background-color:<?=$row['COLOR']?>;border:1px solid;" >
                            <td ><?=$row['id']?></td>
i can controll the colors..
but if i load it with ajax i have only
<tbody>
</tbody>
and it automatically display the rows. there is way to control each tr color?
thanks.

Viewing all articles
Browse latest Browse all 82462

Trending Articles