vdw / Tabslet

Yet another jQuery plugin for tabs, lightweight, easy to use, mobile-friendly and with some extra features.
http://vdw.github.io/Tabslet/
Apache License 2.0
564 stars 110 forks source link

How to change active tab with javascript? #28

Closed mandricmihai closed 9 years ago

mandricmihai commented 9 years ago

How can I change the active with javascript after the page has loaded? This is only for when the is page is first loaded.

$('.tabs').tabslet({
  active: 2
});

I want to change active tab when I press a certain a tag to do that I need a function or something.Btw nice plugin simple and does the job well :+1:

Edit:I have done a simple trigger('click')