sorting images

sorting images

ejhejh Posts: 17Questions: 0Answers: 0
edited August 2013 in General
In some of the cells of my table i placed images instead of data. I create each row with the following code in a loop:

[code] echo ('' . $row [dateStart] . '');
echo ('' . $row [dateEnd] . '');
echo ('' . $row [clientName] . '');
if($row [numDays] <= 45){
echo ("");
} //end if(green_light)
if(($row [numDays] > 45) and ($numDays <= 90)){
echo ("");
} //end if(yellow_light)
if($row [numDays] > 90){
echo ("");
} //end if(red_light)
if($row [redFlag] = FALSE){
echo (" ");
} //end if ($varToTest)
else {
echo ("");
} //end else [/code]

I call the select menus with the following code:

[code] $("tfoot th").each(function (i) {
if (i == 2 || i == 3 || i == 4) {
this.innerHTML = fnCreateSelect( oTable.fnGetColumnData(i) );
$('select', this).change( function () {
oTable.fnFilter( $(this).val(), i );
} ); //end select, this.change
} // end if
} ); [/code]

In the select menus (for each TH element, displayed in the table footer), there is the same value for EACH IMAGE in the column (whether it has one of 3 images or image/no image), this is the value:

[quote] "> [/quote]

Is there a way that I can place a value to SELECT by?

Thank you in advance.
This discussion has been closed.