@archaeous I never even thought of that! You are genius. I will try it out and let you know how it goes! Thanks a million!
Ok so I tried it and it does work. Now I am just figuring out how to write that to an input. As I want to now display the totalPrice in an input field that they could submit with the form. I thought it would be something like this;
$w ( ‘#input4’ ). value = totalPrice ;
but I get the error saying;
Type ‘number’ is not assignable to type ‘string’. It’s recommended you use a new variable, such as “let newVar = …” to make sure that all code completion work correctly.
Thanks for you help and sorry I am not better at this.