If you must use JavaScript to create, then you may use Cookies to keep the variables needed to mark the state of creation. If you read it from the database, you simply reread the data from the database when you render the HTML.
Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239