Hi All
I have the following script in an ASP page which is activated by a button onclick.
I just can not get the right format for the line starting "var n ="
If I change it to
it works, but I want to be able to change the 1 to the value held in var1 which will be 1 to 4.
Any ideas please
I have the following script in an ASP page which is activated by a button onclick.
Code:
function Updatedate(var1,var2) {
var D1 = Date.parseExact(document.getElementById("DateID"+var1).value,"d/M/yyyy");
var n = <%=sysRS("gap"+var1)%>;
var D2 = D1.addWeeks(n);
var D3 = D2.toString("dd/MM/yyyy")
document.getElementById("DateID"+var2).value = D3;
}
If I change it to
Code:
var n = <%=sysRS("gap1")%>;
Any ideas please