Is there something special that needs to be done to values selected with jQuery so math functions can work on them? parseInt or something? I am not sure, but all my calculations are getting NaN. For example, I have the following function that always produces NaN:
var startmin = $("#timestartmin"); var stopmin = $("#timestopmin"); var totaltime = startmin - stopmin; $("#totaltime").val(totaltime); } I've tried adding .val to the first two lines, I've tried parseInt to separate temp variables, I just keep on getting NaN even though it is pulling numbers from the two fields. Any ideas? -Vlad