Jquery Tabs help with onShow function
Hey all i am trying to figiure out why my code is not triggering the "onShow" function for the tabs. Here is my code:
$(document).ready(function() {
$('#tabMain > ul').tabs({ fx: {height: 'toggle'},onShow: function() {alert('onShow');} });
})
I never see the alert box pop up saying "onShow" so i do not know what i am doing wrong?
Any help would 开发者_开发百科be awesome! :)
David
SOLVED
$(document).ready(function() {
$('#tabMain > ul').tabs({ fx: {height: 'toggle'},onShow: function() {alert('onShow');} });
$( "#tabMain > ul" ).bind( "tabsshow", function(event, ui) {alert('sdfsdf');});
})
The newest version of the jQuery Tabs calls the event just show. so try the following:
$(document).ready(function() {
$('#tabMain > ul').tabs({ fx: {height: 'toggle'},show: function() {alert('Showed');});
})
精彩评论