Getting Target URL from jQuery-UI Tabs

前端 未结 3 1658
旧时难觅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:12

    The following will write out the href's to the console.

    Demo that alerts the ajax tab href's here

    $('#tabs a').each(function() {
       var href = $.data(this, 'href.tabs');
       console.log(href);
    })
    

提交回复
热议问题