Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well it needs a little work but here is what I have</p> <p>Live Example:</p> <ul> <li><a href="http://jsfiddle.net/yPhJp/5/" rel="nofollow">http://jsfiddle.net/yPhJp/5/</a></li> <li><a href="http://jsfiddle.net/yPhJp/6/" rel="nofollow">http://jsfiddle.net/yPhJp/6/</a> ( Adding verbiage to the collapsible )</li> </ul> <p>JS</p> <pre><code>$(".splitButtonClicked").on("click", function (event, ui) { alert('Hello'); return false; // stop collapsible event }); </code></pre> <p>HTML</p> <pre><code>&lt;div data-role="page" id="home"&gt; &lt;div data-role="content"&gt; &lt;div data-role="collapsible-set" data-theme="b" data-content-theme="d"&gt; &lt;div data-role="collapsible"&gt; &lt;h2&gt; &lt;ul data-role="listview" data-split-icon="gear" data-split-theme="d"&gt; &lt;li&gt;&lt;a href="#"&gt; &lt;h3&gt;Breakfast&lt;/h3&gt; &lt;/a&gt;&lt;a href="#breakfast_menu" data-rel="popup" data-position-to="window" data-transition="pop" class="splitButtonClicked"&gt;View Menu&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/h2&gt; &lt;/div&gt; &lt;div data-role="collapsible"&gt; &lt;h2&gt; &lt;ul data-role="listview" data-split-icon="gear" data-split-theme="d"&gt; &lt;li&gt;&lt;a href="#"&gt; &lt;h3&gt;Lunch&lt;/h3&gt; &lt;/a&gt;&lt;a href="#lunch_menu" data-rel="popup" data-position-to="window" data-transition="pop" class="splitButtonClicked"&gt;View Menu&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Hope this helps you</p>
 

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