javascript - How to have submission page show total from previous form -


this html named week7.html, results in form https://gyazo.com/bd778ddcbb1a01374a37dd0605d13797

your javascript , dom state gets lost when submit form (you're doing regular submit, not ajax submit). form submission triggers new request, resulting in new page. when new page loads, can access whatever dom defined in html file, js. since processform.html (by itself) not have form element called orderform, none of js can work.

you perhaps redesign calculation in server , return total alone in processform.html.

also, <script type="text/javascript" src="processform.html"> not include file. needs .js file.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -