I am trying to make a BMI Calculator using HTML. The inputs come from text fields. I am making some calculation with them in a Javascript function. I want to get the calcula
Have you tried Jquery ?
$("span").next().text("Your Result"); OR $("span").eq(1).text("Your Result");
To do a better code, put a ID in your component.