Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8442977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:59:44+00:00 2026-06-10T08:59:44+00:00

I have a list which consists of two sections: <ul data-role=listview data-theme=a data-inset=true data-split-theme=c>

  • 0

I have a list which consists of two sections:

<ul data-role="listview"  data-theme="a" data-inset="true" data-split-theme="c">

        <li>
            <a style="padding-top:0">
                <h5>Text 1</h5>
                <p><strong>Text 2</strong></p>
                <p>Date: April 17, 2012</p>
            <a href="http://some address" ></a>
        </li>

What I would like to do is when the user clicks anywhere in the left-hand section of a row I would like to play an audio file (using the html5 tag) and for the text in this section to be removed and replaced with the audio controls for the playing audio. When the user stops the audio I’d like things to return to as they were.

I’m new to JQuery and JQueryMobile and not sure where to begin with this.

Ideally if it is possible when the audio controls appear it would be great if there could be some sort of flipping animation i.e. such as that section of the row rotates and on one side is the audio controls and on the other is the text.
Is such a thing possible?

TIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:59:46+00:00Added an answer on June 10, 2026 at 8:59 am

    You can nest whatever you want in your li, so you can just put two div containers in there and bind to the appropiate events and show and hide them based on that.

    For example:

    Markup:

    <ul id="parentUL" data-role="listview"  data-theme="a" data-inset="true" data-split-theme="c">
            <li>
                <a  style="padding-top:0">
                    <div class="txtCnt">
                    <h5>Text 1</h5>
                    <p><strong>Text 2</strong></p>
                    <p>Date: April 17, 2012</p>
                    </div>
                    <div class="audioCnt displayNone">
                        <h1>Audio Controls</h1>
                    </div>
            <a href="http://some address" ></a>
        </li>
        </ul>
    

    JavaScript:

    $('#parentUL').on('click', '.txtCnt', function () {
        $(this).hide().parent().find('.audioCnt').show();
    });
    
    $('#parentUL').on('click', '.audioCnt', function () {
        $(this).hide().parent().find('.txtCnt').show();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have two List A,B which consists integer values ,list A contains 40 to
I have two lists, one of which consists of a list of first and
I have simple DAL that consists of a SalesEnquiry object, which includes a List<T>
I have input data that consists of a list of subject id's and 2
i have List of int which consists of value 0,0,0,1,2,3,4,0,0 now i like to
I need to split a list into two equal lists. For Example: I have
I have two lists which have been created by .csv files. The first consists
Possible Duplicate: nullPointerException in multi column list I have following app which fetches data
I now have two list box, lstStock and lstSupply. lstSupply consists of -Pen -Pencil
i am creating a theme which consists of two pages, blog and portfolio. therefore

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.