开发者

Jquery Tabs help with onShow function

开发者 https://www.devze.com 2022-12-25 10:16 出处:网络
Hey all i am trying to figiure out why my code is not triggering the \"onShow\" function for the tabs. Here is my code:

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

精彩评论

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