[jQuery] traversing tabs
[jQuery] traversing tabs
Hi
please help on this problem
I have data coming fron DB, put to html page through while cycle
(php), so have many ancor tag. When click one of them appear a tabs
menu
problem is: when click the tab it doesn't chance content
using jquery.tabs.js :: Version: 2.7.4
code
<script type="text/javascript">
jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
$(function() {
$('.tabs').hide();
$('.xfissa').bind('click', function() {
$(this)
.next('div.tabs')
.tabs()
.fadeToggle()
});
$('#showAll').bind('click', function() {
$('.tabs')
.tabs()
.fadeToggle()
});
});
</script>
html
<div id="tabs" class="tabs">
<ul id="navlist">
<li><a href="#divname" id="current">Descrizione</a></li>
<li><a href="#divname2">Foto</a></li>
<li><a href="#divname3">Mappa</a></li>
</ul>
<div id="divname" class="hiddencontent"><? echo $desc; ?></div>
<div id="divname2" class="hiddencontent">foto</div>
<div id="divname3" class="hiddencontent">mappa</div>
</div>
thank
franco