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 8455785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:22:25+00:00 2026-06-10T12:22:25+00:00

I have a collapsible section that I want to add an image and a

  • 0

I have a collapsible section that I want to add an image and a count bubble too like the markup below..

<a href="pa.aspx">
  <img src="images/gf.png" alt="" class="ui-li-icon">
  IT Change Controls<span class="ui-li-count">4</span> 
</a>

I problem is if I add anything but an <h3> tag the section header wont render properly. This is not working for me..

 <div data-role="collapsible" data-inset="false" data-collapsed="false">
     <%--<h3>Section 1</h3>--%>
     <a href="pa.aspx">
         <img src="images/gf.png" alt="" class="ui-li-icon">
         IT Change Controls<span class="ui-li-count">4</span> 
     </a>

How can I get an image and a count bubble in the section header?

Image of collapsible section with count bubble image on right side

  • 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-10T12:22:27+00:00Added an answer on June 10, 2026 at 12:22 pm

    Maybe the following implementation is close to what you want:

    <!doctype html>
    <html lang="en">
       <head>
            <title></title>
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
            <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
            <script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>   
            <style>
                div.col-set .ui-icon {
                    visibility:hidden;
                }
    
                div.col-set .comment-count {
                  float: right;
                  font-size: 11px;
                }
    
                div.col-set .img-set {
                  float: left;
                }
    
                div.col-set a {
                    text-decoration: none;
                    font-size: 11px;
                }
    
                div.col-set .col-text {
                    margin-left: 20px;
                    text-align: center;
                    float: left;
                    font-size: 11px;
                }
        </style>
        </head>
        <body>
            <div data-role="page">
                <div data-role="content">   
                    <div class="col-set" data-role="collapsible" data-collapsed="true">
                        <h3>
                            <a href="test.html">
                                <img src="http://jquerymobile.com/demos/1.0a4.1/docs/lists/images/sj.png" class="img-set" alt="SJ Flag" />
                                <div class="col-text">Test 1</div>
                                <span class="ui-li-count ui-btn-up-c ui-btn-corner-all comment-count">1</span>
                            </a>
                        </h3>
                        <p>Collapsible content 1.</p>
                    </div>
                    <div class="col-set" data-role="collapsible" data-collapsed="true">
                        <h3>
                            <a href="test.html">
                                <img src="http://jquerymobile.com/demos/1.0a4.1/docs/lists/images/sj.png" class="img-set" alt="SJ Flag" />
                                <div class="col-text">Test 2</div>
                                <span class="ui-li-count ui-btn-up-c ui-btn-corner-all comment-count">2</span>
                            </a>
                        </h3>
                        <p>Collapsible content 2.</p>
                    </div>
                </div>
            </div>      
        </body>
    </html>
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a collapsible content like this http://jsfiddle.net/coderslay/Ae5CU/ In that the Summary is aligned
I have a set of divs that I want to make collapsible/expandable using jQuery's
I have a jquery-ui accordion widget with the setting collapsible:true . I want other
I have an asp.net aspx page and on that page I have a hidden
I have created a collapsible menu with stucture like: Parent Parent 2 Parent 3
I have the following jquery mobile code: <div data-role=collapsible> <h3>I like to read a
I have a ViewPort that I want to open a number of tabs. One
I have a JQuery Accordion as below; <div id=accordion> <h3 class=ui-accordion-header><a id=link1 href=#>First Header</a></h3>
I have collapsible sections created using jQuery UI Accordion. When each section is expanded
I have a simple collapsible content element at the top of a page that

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.