I have a form where everything is supposed to be disabled on load except the first field.
The first field is an autocomplete input. When they select something from it, it goes disabled, and then sets the second field to be enabled. The second field is a dropdown.
The problem is, after a user uses the form and clicks the back button, it goes to a state similar to the one it was in before they clicked submit-- 1- autocomplete is disabled (but has no value for some reason) 2- dropdown is enabled, and set to the value they submitted with
I've tried to force the restoration of the form with javascript (using jquery's .ready()), but the .ready() doesn't run after they go back with the back button..
Refreshing the page after going back restores it. Any ideas how I can fix this?