Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm sorry, but we will need more information. I just tried this code (jQuery version 1.4.2):</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;test&lt;/title&gt; &lt;script type="text/javascript" language="javascript" src="jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript"&gt; function initExamples() { $('#examples ul').hide(); $('#examples ul:first').show(); $('#examples li a:first').addClass('exampleon'); $('#examples li a').click(function(event) { event.preventDefault(); var checkElement = $(this).next(); if((checkElement.is('ul')) &amp;&amp; (checkElement.is(':visible'))) { return false; } if((checkElement.is('ul')) &amp;&amp; (!checkElement.is(':visible'))) { $('#examples a.exampleon').removeClass('exampleon'); $('#examples ul:visible').slideUp('normal'); $(this).addClass('exampleon'); checkElement.slideDown('normal'); return false; } } ); } $(document).ready(function() {initExamples();}); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;ul id="examples"&gt; &lt;li&gt; &lt;a href="#"&gt;TITLE TEXT 1&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;MY CONTENT 1&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;TITLE TEXT 2&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;MY CONTENT 2&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;TITLE TEXT 3&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;MY CONTENT 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and it seems to be working properly under Safari. Maybe it's something else from your layout? </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.
    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