Hi all.
I am trying to highlight a row in a database if it's more than 1 day old,
I'm trying this, but it's making all the dates highlighted.
TIA
Pat
I am trying to highlight a row in a database if it's more than 1 day old,
I'm trying this, but it's making all the dates highlighted.
TIA
Pat
Code:
$j(function(){
$j('.louth-entereddate').each(function(){
var today = new Date();
if(d.setDate(d.getDate() - 1){
$j(this).parents('tr').addClass('warning');
}
})
})