I have created the foloowing javascript and placed it in a file called common.js. it gets called on a onChange event. it works up till it gets to setting the value (i think). Being my first script i'm really at a loss why it errors out. I tried .value() = and .value( prevbal - demand..... TIA
function recalcnet(txt) {
switch (txt) {
case '0' :
recalcnet1();
break;}}
function recalcnet1() {
var prevbal = 0;
var demand = 0;
var whatif = 0;
var sched = 0;
prevbal = document.getElementById('BegInvTextbox').value;
demand = document.getElementById('dm1TextBox').value;
whatif = document.getElementById('ifm1TextBox').value;
sched = document.getElementById('fmm1TextBox').value;
document.getElementById('nm1TextBox').value(prevbal - demand + whatif + sched)};