I’m lost with what you are saying!
I haven’t learned any of the stuff you just told me. I have an Id for the each place required there’s three cities and three hotel types I used an Id tag to connect them but I think I need a main id tag for ArrivalCity and Hotel so I can have everything add correctly. But when I out put using the submit button the total comes back as NAN.
So the id needs to be changed so I can get the correct id so I can pull it into the Total that I need.
I add the getElementsName to my Java folder with the names of city and hotel in each one but nothing works.
var elements = document.getElementsByName(“city”);
var elements = document.getElementsByName("hotel");
did I do this right?
Total=(ArrivalCity)+(Hotel1)+(Days1)+(Travelers2)+(Snacks1)+(Extras*1);
how would I write this so it actually works. I checked inside the inspector and it doesn’t work I think this is the last part.
I just updated it so it should show everything I just did.
Book My Trip
My button is coming back with an error as well.
Did you update your code and Save it? I don’t see any changes.