i've been stuck on a problem and can't seem to find any help for it.. I've tried my own code, searched for tutorials on the matter but nothing seems to hit the mark.. 

I am currently using JQuery UI tabs for an application. Each tab click is actually loading its contents using Ajax. I now need to expand the functionality and keep the state between the tabs. 

Example: 

Click Tab A and fill in form documentation.
Click Tab B to look up some information.
Click Tab A and the information still be present.

Does anyone have some insight in how i could accomplish this?