1

I'd like to create a list of webradio stations using JQuery Mobile. Parts of the list (like the stations name and the genre tags) should be permanently visible, while other parts (like the url or comments) should be collapsed and only get uncollapsed on demand.

To clarify my requirements I made an example:

<div data-role="content">
    <ul data-role="listview">
        <li>
            <h2>Item 1</h2>
            <div class="tag-list">
                <span class="tag">Tag A</span>
            </div>
            <div class="comment-list">
                <div class="comment">
                    <p>This is a comment</p>
                </div>
                <div class="comment">
                    <p>Another comment</p>
                </div>
            </div>
        </li>
    </ul>
</div>

(better viewed here: http://jsfiddle.net/uAvpS/1/)

Only comment-list and comment should be collapsed, the rest should always be visible.

How can this be achieved? In my point of view this is different to collapsible lists

speendo
  • 13,045
  • 22
  • 71
  • 107
  • 1
    Like this http://jsfiddle.net/uAvpS/3/ – Omar Jul 08 '13 at 20:31
  • almost! I'd like the whole
  • object to be collapsible. Collapsed only the main information should be visible (like the name and the genres). When uncollapsed, every information should be visible (like the url and the comments. Thank you!
  • – speendo Jul 08 '13 at 20:49
  • 1
    Like this? http://jsfiddle.net/Palestinian/uAvpS/4/ – Omar Jul 08 '13 at 21:35
  • yes! If you formulate an anser I could accept it. Great work! – speendo Jul 08 '13 at 21:53
  • Glad it sorbed for You :) – Omar Jul 08 '13 at 22:02