I don't know anything about JavaScript and would like to buy a vowel...
Why is this function concatenating instead of adding?
Thanks very much!
Thomas
Why is this function concatenating instead of adding?
Code: Select all
function DmsToDecLat(FormName) {
if (FormName == 'plotCircle') {
var d = document.plotCircle.lat_d.value;
var m = document.plotCircle.lat_m.value;
var s = document.plotCircle.lat_s.value;
document.plotCircle.lat.value = (d+(m/60)+(s/3600));
} else {
}
}
Thomas