Results 1 to 2 of 2
Jun 9, 2011, 12:25 #1
- Join Date
- Dec 2005
- 0 Post(s)
- 0 Thread(s)
how can you set js function back to initial state when page is first loaded?
I have a scripts which filters a list of data based on a users selection from dropdowns in a form. The script updates a counter while the user is making the selections and also colates a url string which I then use to query a php db when the user clicks view results.
I also have a reset button in the form so the user can quickly go back to the start.
When this is clicked it does reset all the dropdowns and inputs to their defualt values but it doesn't reset my js functions back to their initial states.
Can anyone tell me how I can do this? Is there a js reset function I can use?
Any help greatly appreciated.