I wasn’t sure where to put this under, the site is php, using javascript to change css.
What I’m trying to do is say if a column contains todays date change its background color, if another column contains todays date change its background color to a different color.
I’m not at all an expert, it may be as simple as i just don’t know the correct terminology to make it work.
<script type=”text/javascript”>
var today = new Date();
today.setHours(0);
today.setMinutes(0);
today.setSeconds(0);
today.setMiliseconds(0);
$(document).ready(function() {
$(‘.start:contains(today)’).css(‘background-color’, ‘#99FF99’);
$(‘.end:contains(today)’).css(‘background-color’, ‘#F5BCA9’);
});
</script>