Conditional Function on Tables
Hello All,
Im fairly new to JQuery and excited about using it. I have a condition that I trying to execute on a dynamic datatable on my aspx page. I have a value called "scheduled time" on my table in column 2 that should compare itself to the current time(new Date(); ?) . Based on the comparison the function below should happen...
From my oracle database, the column2 is a variable timestamp called "SCHD TIME"
if item is 0-15mins late, then table row is red
if item is >15min<=30mins late, then table row is yellow
if item is >30mins<=2hours late, then table row is green.
I have a good starting point but need some help with comparing time
my code can be view here on jsfiddle
Thank you for the assistance!