javascript - Default tabs in Ajax -


I'm trying to load a default tab in the tabbed Ajax code, which is the head tag

  & lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://www.hastiefitness.com.au/wp-content/themes/hastie/jquery.fwd_tabs.js" & gt; & Lt; / Script & gt;  

And this is what I am using in HTML:

  & lt; Div class = "tabs" & gt; & Lt; Ul class = "tab-menu" & gt; & Lt; Li & gt; & Lt; A href = "# tab-1" & gt; Team training program & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# Tab2" & gt; Virtual education and coaching programs & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# tab3" & gt; Private coaching program & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div class = "tab-content" id = "tab-1" & gt; Page is in question:   

The default tab means the middle one, which is tab 2 < / P>

How can I do this? I have searched and it is not working at all.

Looks like a plugin used to set an active tab has no direct support, so plugins When triggered, a click event triggers the desired anchor element

  jQuery (function () {$ ('. Tabs').  

Demo: < / P>

/ html>

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -