I’ve been trying to create some tabs on my website, here it goes:
<ul class="tabContainer">
<!--Tabs Here -->
</ul>
<div class="clear"></div>
<div id="tabContent">
<div id="contentHolder">
<!-- The content goes here -->
</div>
</div>
Now, i’ve seen the following used, but I was wondering if it was possible, instead of individual pages of content, to get individual divs instead:
so instead of:
var Tabs = {
'Music' : 'pages/page1.html',
'DVD' : 'pages/page2.html'.
}
use this instead:
var Tabs = {
'Music' : 'div#fragment-1',
'DVD' : 'div#fragment-2'.
}
Is this possible? Or is there another solution I can use to get the content somehow? I just want a simple ish solution where I can switch between 2 tabs of content, but for use in JQuery 1.4 only?
Hope you can help,
Snakespan
you could try something like the following:
JS
html