jQuery-UI tabs - load every tab just once
I'd like the load content of my tabs thru AJAX, but only on the first tab click. Now the tabs gets loaded every time I click on any tab.
- <div id="tabContainer">
<ul>
<li><a href="/Home/Tab1">Tab1</a></li>
<li><a href="/Home/Tab2">Tab2</a></li>
<li><a href="/Home/Tab3">Tab3</a></li>
</ul>
</div>
I cannot use the Cache option,because the content in the tabs may change..
I was thinking something like change the href atribute after the tab gets first loaded.