This should post answer to input text but doesn't; is the javascript right? ... then I can check the html.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Colin_Dempsey
Posted On:   Thursday, February 3, 2011 06:32 AM

I can't see what is wrong!


function valused() {


b1 = document.formp.ba.value;

b2 = document.formp.bb.value;


vol = 1.02264;
calor = 39.47333;
kwhr = 3.6;


c = ((b1-b2*1)*(vol*1)*(calor*1))/(kwhr*1);


document.formp.babb.value = c

Re: This should post answer to input text but doesn't; is the javascript right? ... then I can check the html.

Posted By:   Colin_Dempsey  
Posted On:   Thursday, February 3, 2011 08:41 AM

It's OK I was pointed at the wrong html; so the changes weren't being updated and I've altered the calculation too now things are working.
About | Sitemap | Contact