The problem is in the line:
Code: Select all
if (a.val() == 1) {//was if (a == '1')
Code: Select all
updateDuration(t1, t2, d, a, e);
Code: Select all
if (a.val() == 1) {//was if (a == '1')
Code: Select all
updateDuration(t1, t2, d, a, e);
Code: Select all
var beg = $("#" + prefix + "pro_beg");
var end = $("#" + prefix + "pro_end");
var diff1 = $("#" + prefix + "pro_dif");
var diff2 = $("#" + prefix + "pro_diff");
var devNum = $("#" + prefix + "pro_num");
Early rejoiced, Counts only the first line. - fixed.kev1n wrote:Meaningful variable names help to make code more readable and easier to understand.