Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I suggest you take a look at the offictal jQuery UI documentation, in particular the <a href="http://jqueryui.com/demos/tabs/" rel="nofollow">tabs page</a>. I think your markup has some errors, this is how I would do this:</p> <pre><code>&lt;div id="tabs_container"&gt; &lt;ul&gt; &lt;li class=""&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li class=""&gt;&lt;a href="#contact"&gt;Contact &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="about" class="tab_content"&gt; &lt;h3&gt;About &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/h3&gt; &lt;p&gt;&lt;?php echo $retailers['Retailer']['description'];?&gt;&lt;/p&gt; &lt;/div&gt; &lt;div id="contact" class="tab_content"&gt; &lt;h3&gt;Contact &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/h3&gt; &lt;h4&gt;Email &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/h4&gt; &lt;p&gt;&lt;?php echo $retailers['Retailer']['email_address'];?&gt;&lt;/p&gt; &lt;h4&gt;Phone &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/h4&gt; &lt;p&gt;&lt;?php echo $retailers['Retailer']['phone'];?&gt;&lt;/p&gt; &lt;h4&gt;Fax &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/h4&gt; &lt;p&gt;&lt;?php echo $retailers['Retailer']['fax'];?&gt;&lt;/p&gt; &lt;h4&gt;Write to &lt;?php echo $retailers['Retailer']['company'];?&gt;&lt;/h4&gt; &lt;p&gt;&lt;?php echo $retailers['Retailer']['address_line_1'];?&gt;,&lt;br /&gt;&lt;?php echo $retailers['Retailer']['address_line_2'];?&gt;,&lt;br /&gt;&lt;?php echo $retailers['Retailer']['city'];?&gt;,&lt;br /&gt;&lt;?php echo $retailers['Retailer']['county'];?&gt;,&lt;br /&gt;&lt;?php echo $retailers['Retailer']['postcode'];?&gt;&lt;/p&gt; &lt;/div&gt; </code></pre> <p> </p> <p>You need a div which contains all the tab divs AND the list with the various links, you missed this in your code. Then in your jQuery code you're missing a call to .tabs() which effectively creates the tabs. Here is how you would do this assuming you where using the previous markup I posted:</p> <pre><code>$('#tabs_container').tabs() </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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