I have a form that has a popup when a certain button is pressed on the page. If i filled in the form, but have not submitted it for posting yet and I press the popup button, when i go to exit the modal the form that I had filled in goes blank. I looking to prevent this. I dont want to have post when I click the popup button, I want to smoothly exit the modal so that when I go back to the parent page all the unsubmitted but filled in data is still there. Really the only code I am using that you have to worry about is i have an onclick event like this:
onclick="location.href=parent.location"
that was the easiest solution i found to exit the modal but obviously it has the one problem stated above.
thanks.