Here is my regular java script code
So far I have learned how to use $w to refer to an element. ie $w('#btnBMI').label = "Calculate BMI";
I have attempted to calculate the BMI using the following code in a button called BMI.
This produces a parsing error.
I want to then output this value back to txtBMI which will then be saved to the database when the users clicks submit.
I am not sure what to do. I've been looking for examples of how to do calculations but haven't really found what I need.
Thanks in advance.