hi experts!
I need to create an online calculator from these inputs: width, length and height, and display the answer in
m³. The length and width measurs are in meters, the height (this is a tricky part) in centemeters.
Found the base of that code from internet and modified a bit. (
Look into JSFiddle/). Basically it does what i need – calculates the sum from three values (first two are in meters, third in centemeters), but i would like it to be more simpler. I don’t want “select options” at the end of a height (thickness) field. this value:
..else if(select_val == "meter"){
result = result/100;
$("#answer").text(result).append(" m<sup>3</sup>");;...
must have programmed into code by default!
please help me to simplify that code! or maybe you can provide more elegant solution?
my english is not good, but i still hope you understood my request
What I have tried:
tried to solve it myself, but... couldn't