Which jQuery Mobile Page Event?

Which jQuery Mobile Page Event?

Hello :)

I've different pages. At the page #set, the variable ID will be stored in the localStorage.

If I open the page #show, my function get the variable ID from the localStorage and based on this ID, it will show some information based on the localStorage ID.

The problem is following:
I go to the #set page and set the variable ID to 33 and store it in localStorage
Then I go to the #show page and all works fine.

BUT

If I go after that to the #set page, set the variable ID to 66, go to the #show page, then I will see the information from ID 33

In my localStorage is ID 66.

To solve this problem I have to refresh the page, but that can't be the solution :(


(sorry for my bad english, I hope you understand my problem)