javascript - jScrollPane Vertical Tabs - How can I simulate a click on a link/tab? -


I have implemented successfully and I am trying to show a tab by default.

Can I simulate a click on the link with id #default? if so, how?

The code is the same on that site. This is Javascript:

  $ (function () {// "tabs" $ ('. Tabs'). Each (function () {var currentTab, ul = $ (this); $ (This) .find ('a'). Each (function (i) {var a = $ (this) .bind ('click', function () {if (currentTab) {ul.find ('a. $ (CurrentTab) .hide ();} currentTab = $ (this) .addClass ('active') .attr ('href'); $ (currentTab). Show () .jScrollPane (); return false;}); $ (A.attr ('href').);});});});   

Here is the html code:

  & Lt; ul class = "tabs"> 
  • page 1 & lt; / Li>
  • palette 2 gt; & lt; li & gt; & lt; li & gt; & lt; li & gt; ; & Lt; a href = "# Pence 3"> F A <3>

    Thank you!

    Does not such a required work, after it's started?

      $ ('# default'). Click ()    

  • Comments