views:

18

answers:

1

$('tr').find(need help here).parent().css('backgroundColor', '#fcc');

would like to perform inequality check of two dates (both strings) in the 'need help here' section of the above snippet.

Thanks

+1  A: 

Not one liner but you can put on one line if you want ;)

$('tr').each(function(){
    if(new Date($(this).find('td').first().html()) == new Date($(this).find('td').eq(2).html())){
       $(this).css('backgroundColor', '#fcc'));
    }
})
Gregoire
Gregoire == ninja returns true!
whorunbartertown