Here is a code for a single button that shows/hides the rules in my sign up page, I have this button right before the submit button in the page..my problem is every time I click it, all the information that the user has typed in into the fields gets lost. What alternatives can I use to solve this problem, does anyone has any idea of what I should change or add into this? I'm thinking of ajax but I totally don't know how to apply/use it in any sense. Thank you very much and any help will be much appreciated.
__________________________________________________ ______________________
Edit: Application of the button above.