WORKED WITH THESE CHANGES
Strange that the number function did not work. It works in a single function, when I tried to use it my select boxes would not work, but I figured it out.
Here are the changes. Its now working.
function calculate(){
result=parseInt(dropdown1.value) +...
I have to change the var to number outside of the functions so that they can be read from any where in the program
eg dropdown1=Number(dropdown1).value;
dropdown2=Number(dropdown2),value;
the program is still reading the numbers as text
Tell me where I am going wrong please.
the function calculate
function calculate(){
result=dropdown1.value+dropdown2.value;
alert(result;
}
is working except that it prints out the numbers as if they were text and did not add them. So the program is not seeing the dropdown values as numbers. My guess is if it sees them as...
I want to call a function that adds values from two separate functions. the functions produce values in a drop down box. For example function one outputs dropdon value in a text field box and function two outputs another value .
I want to call a function that adds the values of the two drop...
I have installed visual studio 2012 for windows 8. Each time i try to run an app locally I get this error message
Unable to debug windows store app ‘wwahost.exe’ . The debugger was unable to find the registration for the target application.
Any one has any ideas. I have uninstalled and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.