Getting Target URL from jQuery-UI Tabs

前端 未结 3 1663
旧时难觅i
旧时难觅i 2021-01-06 08:37

I\'m working on a project that makes heavy use of jQuery tabs and Ajax. Loading data into the tabs is simplicity itself, but the data in the tabs needs to be filtered by a s

3条回答
  •  余生分开走
    2021-01-06 09:13

    You can also set the title property in the tab links.

    
    

    With this, JQueryUI will create divs with an id based on the title, with the spaces replaced by underscores, therefore you should be able to access the divs using something like

    $("#First_tab_contents")
    

    Cheers!

提交回复
热议问题