Note that there are some explanatory texts on larger screens.

plurals
  1. POChoosing Next Tab on clicking a Button jquery
    primarykey
    data
    text
    <p>Hi i am writing a visualforce page code is</p> <pre><code>&lt;apex:page &gt; &lt;!-- Begin Default Content REMOVE THIS --&gt; &lt;head&gt; &lt;apex:includeScript value="{!URLFOR($Resource.UIJQuery1822, 'js/jquery-1.7.2.min.js')}"/&gt; &lt;apex:includeScript value="{!$Resource.JQueryMin}" /&gt; &lt;apex:stylesheet value="{!URLFOR($Resource.UIJQuery1822,'css/ui-lightness/jquery-ui-1.8.22.custom.css')}" /&gt; &lt;script type="text/javascript"&gt; $j=jQuery.noConflict(); $j(document).ready(function() { $j( "#tabset" ).tabs(); $j('#theButton').click(function() { var selected = $("#tabset").tabs("option", "selected"); $("#tabset").tabs("option", "selected", selected + 1); // $( "#tabset" ).tabs( 'select' , 2 ); // alert('Hello World') }); }); &lt;/script&gt; &lt;Title&gt;Hello World&lt;/Title&gt;&lt;/head&gt; &lt;Body&gt; &lt;div id="tabset"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#panel1"&gt;Tab One&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#panel2"&gt;Tab Two&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#panel3"&gt;Tab Three&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="panel1"&gt; Hello World1&lt;/div&gt; &lt;div id="panel2"&gt;Hello World2 &lt;button type="button" id="theButton"&gt;Click Me!&lt;/button&gt;&lt;/div&gt; &lt;div id="panel3"&gt;Hello World3 &lt;/div&gt; &lt;/div&gt; &lt;/Body&gt; &lt;/apex:page&gt; </code></pre> <p>what i have to accomplish is when i click Click me it will activate Tab Three.there are two comment lines in click function when i comment out alert('Hello World') its giving me alert but when i comment alert line and use any one option its not activating the 3rd tab.can any please tell me Why its not activating third tab?? and give some code snippet such that it starts working fine!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload