Jump to content


fjcalvomacias

Member Since 21 Jan 2015
Offline Last Active Mar 20 2015 07:34 AM
-----

Posts I've Made

In Topic: Change row color based on value

21 January 2015 - 07:25 AM

Hi! im new in the forum and my english is....

 

JQUERY POWER!! parent().parent.().parent().......

 

i use callbackcolum and return ->

$dev = "<a href=\"JAVASCRIPT:ver_gastos('".$value."',".$row->id.")\" id='conte".$row->id."'>".$valor."</a>";
        if($fact["observaciones"]!=""){
            $dev.="<script>$('#conte".$row->id."').parent().parent().parent().css('background-color','#ff6f6f');</script>";
        }