开发者

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');});
})
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜