Getting Target URL from jQuery-UI Tabs

前端 未结 3 1633
旧时难觅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 08:58

    var links = $("#thetabs > ul").find("li a");
    var url = $.data(links[tabnum], 'href.tabs');
    

    tabnum is the zero based index of the tab you want the url from

提交回复
热议问题