I'm trying to figure out how to update part of a web page using JavaScript when a user changes an input field on another part of the same page. However because I'm using document.write, I can't go back later and update this unless I reload the page. I admit I am not overly competent with JavaScript. If anyone can give me advice on how to approach this problem it would be most appreciated. I'm hoping that there's a way to do this without Ajax, as it's just a very simple task and I don't want it to get too complicated.
My site has a 5 step quote calculator that shows and hides divs to go through the steps without loading/reloading the page. On the last step, step 5, I perform a calculation based on step 1 and output it using document.write. But because I allow the user to go back to Step 1 and make changes to the input text field, the calculation on step 5 becomes incorrect when they return.
I would like to avoid page reloads since I'm using jQuery to do some cool transition effects you go through the steps. What's the best way to approach a problem like this?
I would happily do some research on my own but I'm not exactly sure where to start.