So I have been stumbling my way thru some JavaScript.

Setup: I've got a form with 4 columns. QTY, Description, PRICE and LINE
TOTAL.
CAPS are the important ones.

Form has at least 5 lines, will have the ability to add more if need be. All
are text fields except Description and LINE TOTAL since LINE TOTAL cannot be
altered manually.

My handy dandy JS function which works in IE:

function updateLineTotal() {
 var itmPrice;
 itmPrice = 0;
 itmPrice = itmPrice + (document.getElementById('QLQTY_1').value *
document.getElementById('QLPRICE_1').value);
 document.getElementById('QLSUBTOTAL_1').innerHTML =
round_decimals(itmPrice, 2);
}

Why doesnt it work in FF? What do I need to add to it? I'm sure its
something to do with the DOM right?

Any pointers much appreciated,

E2K


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:247408
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to