jQuery Tabs - Load contents only when clicked

前端 未结 5 1878
名媛妹妹
名媛妹妹 2020-12-04 17:15

I am relatively new to jQuery and web development.

I am using jQuery UI Tabs to create tabs.

But I want the contents to be loaded only when I select a partic

5条回答
  •  独厮守ぢ
    2020-12-04 17:30

    By default a tab widget will swap between tabbed sections onClick, but the events can be changed to onHover through an option. Tab content can be loaded via Ajax by setting an href on a tab.

    source: http://docs.jquery.com/UI/Tabs

提交回复
热议问题