I tried that, but it still doesn’t show the result on multiple lines. Here’s my code:
(function(){
var cal = ”;
if(fieldname5==1)
cal = (10*(fieldname8*0.454)+6.25*(((fieldname6*12)+fieldname7)*2.54)-5*fieldname2+5);
if(fieldname5==2)
cal = (10*(fieldname8*0.454)+6.25*(((fieldname6*12)+fieldname7)*2.54)-5*fieldname2-161) ;
if(fieldname10==1)
cal = cal * 1.2;
else if(fieldname10==2)
cal = cal * 1.375;
else if(fieldname10==3)
cal = cal * 1.55;
else if(fieldname10==4)
cal = cal * 1.725;
jQuery(‘.equation-result’).html(“Your TDEE is ” + ROUND(cal) + “\n” +” Calories.”);
return cal;
})();