gerrardywhz
New Member
I have a table like this:
I want to change the background color of the cells with the prices when i click on them (such as \[code\]addClass(on)\[/code\] ), as you can see on the bottom-left corner, and also change the background color of the other cells too (such as \[code\]addClass(off)\[/code\] ). I don't want the other cells being effected (the ones with text and also different colors). I also need to get the id of the row which the clicked cell belongs.Here is the structure of a row.\[code\]<tr class="taksit" id="tek"> <td><b>Tek ?ekim</b></td> <td><?=$sontutar?> TL</td> <td><?=$sontutar?> TL</td> <td><?=$sontutar?> TL</td> <td><?=$sontutar?> TL</td> <td><?=$sontutar?> TL</td> <td><?=$sontutar?> TL</td> <td><?=$sontutar?> TL</td></tr>\[/code\]I have tried a few tricks found on here, but not able to do it.Any idea how can I do this?