materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Get active tab

Open kalitk0 opened this issue 11 years ago • 2 comments

How to get the active tab ID?

kalitk0 avatar Mar 02 '15 15:03 kalitk0

Using jQuery you can do a $('.tab').find('.active') and then find the ID

acburst avatar Mar 02 '15 16:03 acburst

Hi I tried to do this but still it does not work, I have 3 tabs in a modal and an OK button, when this code:

function processLogin() { var currentTab = $('ul.tabs').find('.active'); console.log("currentTab = " + JSON.stringify(currentTab)); }

But I always got the same json code and no info about to what is the current tab.

Would you mind to extend your explanation ...

TIA Yamil

YamilBracho avatar Oct 24 '16 03:10 YamilBracho