{"id":9081,"date":"2012-10-18T17:43:40","date_gmt":"2012-10-18T12:13:40","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=9081"},"modified":"2016-12-19T17:43:45","modified_gmt":"2016-12-19T12:13:45","slug":"setting-count-bubble-in-jquery-mobile-accordian-head","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/","title":{"rendered":"Setting count bubble in jQuery mobile Accordian Head"},"content":{"rendered":"<p>Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default.<\/p>\n<p>To add count bubble to Accordian head, we use following piece of code:<\/p>\n<p>[html]&amp;amp;lt;\/pre&amp;amp;gt;<br \/>\n&amp;amp;lt;h2&amp;amp;gt;Heading&amp;amp;lt;span class=&amp;amp;quot;ui-li-count&amp;amp;quot;&amp;amp;gt;10&amp;amp;lt;\/span&amp;amp;gt;&amp;amp;lt;\/h2&amp;amp;gt;<br \/>\n&amp;amp;lt;pre&amp;amp;gt;<br \/>\n[\/html]<\/p>\n<p>But it doesn&#8217;t give us the desired output and it looks like following:<\/p>\n<p>If we want to set count bubble in Accordian head as per our use case , we have to add following css:<\/p>\n<p>[html]<\/p>\n<p>.ui-collapsible-heading .ui-btn-text{ display:block;}<br \/>\n.ui-collapsible-heading .ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 10px;  border-radius: 1em 1em 1em 1em; background: linear-gradient(#FFFFFF, #F1F1F1) repeat scroll 0 0 #EEEEEE;  border: 1px solid #CCCCCC; color: #222222;font-weight: bold;text-shadow: 0 1px 0 #FFFFFF; }<br \/>\n[\/html]<\/p>\n<p>After making the changes, our Accordian head looks like following:<\/p>\n<p>Hope it helps.:)<br \/>\n<a href=\"https:\/\/2thenew.xyz\/blog\/author\/rajan\/\">Rajan Shergill<\/a><br \/>\n<a href=\"mailto:rajan@intelligrape.com\">rajan@intelligrape.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html]&amp;amp;lt;\/pre&amp;amp;gt; &amp;amp;lt;h2&amp;amp;gt;Heading&amp;amp;lt;span class=&amp;amp;quot;ui-li-count&amp;amp;quot;&amp;amp;gt;10&amp;amp;lt;\/span&amp;amp;gt;&amp;amp;lt;\/h2&amp;amp;gt; &amp;amp;lt;pre&amp;amp;gt; [\/html] But it doesn&#8217;t give us the desired output and it looks like following: If we want [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":4,"footnotes":""},"categories":[518],"tags":[1102,1103,4842,921],"class_list":["post-9081","post","type-post","status-publish","format-standard","hentry","category-android","tag-accordian","tag-accordian-head","tag-html","tag-phonegap"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn&#039;t give us the desired output and it looks like following: If we want\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Rajan Shergill\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn&#039;t give us the desired output and it looks like following: If we want\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn&#039;t give us the desired output and it looks like following: If we want\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#article\",\"name\":\"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog\",\"headline\":\"Setting count bubble in jQuery mobile Accordian Head\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajan\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-10-18T17:43:40+05:30\",\"dateModified\":\"2016-12-19T17:43:45+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#webpage\"},\"articleSection\":\"Android, Accordian, Accordian head, HTML\\\/UI\\\/CSS, Phonegap\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"position\":2,\"name\":\"Android\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#listItem\",\"name\":\"Setting count bubble in jQuery mobile Accordian Head\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#listItem\",\"position\":3,\"name\":\"Setting count bubble in jQuery mobile Accordian Head\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajan\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajan\\\/\",\"name\":\"Rajan Shergill\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/eb5d445c6d373510aede382494d12659d23728d95f26b7cef5d075dc66529ded?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Rajan Shergill\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/\",\"name\":\"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog\",\"description\":\"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\\\/html] But it doesn't give us the desired output and it looks like following: If we want\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/setting-count-bubble-in-jquery-mobile-accordian-head\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajan\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/rajan\\\/#author\"},\"datePublished\":\"2012-10-18T17:43:40+05:30\",\"dateModified\":\"2016-12-19T17:43:45+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog","description":"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn't give us the desired output and it looks like following: If we want","canonical_url":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#article","name":"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog","headline":"Setting count bubble in jQuery mobile Accordian Head","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/rajan\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2012-10-18T17:43:40+05:30","dateModified":"2016-12-19T17:43:45+05:30","inLanguage":"en-US","commentCount":5,"mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#webpage"},"articleSection":"Android, Accordian, Accordian head, HTML\/UI\/CSS, Phonegap"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/android\/#listItem","name":"Android"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/android\/#listItem","position":2,"name":"Android","item":"https:\/\/2thenew.xyz\/blog\/category\/android\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#listItem","name":"Setting count bubble in jQuery mobile Accordian Head"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#listItem","position":3,"name":"Setting count bubble in jQuery mobile Accordian Head","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/android\/#listItem","name":"Android"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/rajan\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/rajan\/","name":"Rajan Shergill","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/eb5d445c6d373510aede382494d12659d23728d95f26b7cef5d075dc66529ded?s=96&d=mm&r=g","width":96,"height":96,"caption":"Rajan Shergill"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/","name":"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog","description":"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn't give us the desired output and it looks like following: If we want","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/rajan\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/rajan\/#author"},"datePublished":"2012-10-18T17:43:40+05:30","dateModified":"2016-12-19T17:43:45+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog","og:description":"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn't give us the desired output and it looks like following: If we want","og:url":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Setting count bubble in jQuery mobile Accordian Head | TO THE NEW Blog","twitter:description":"Sometimes we want to show count bubble in Accordion head that is different from the what jQuery mobile provides by default. To add count bubble to Accordian head, we use following piece of code: [html] Heading10 [\/html] But it doesn't give us the desired output and it looks like following: If we want","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"9081","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 23:08:59","updated":"2024-02-29 09:33:28","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/android\/\" title=\"Android\">Android<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSetting count bubble in jQuery mobile Accordian Head\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Android","link":"https:\/\/2thenew.xyz\/blog\/category\/android\/"},{"label":"Setting count bubble in jQuery mobile Accordian Head","link":"https:\/\/2thenew.xyz\/blog\/setting-count-bubble-in-jquery-mobile-accordian-head\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/9081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=9081"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/9081\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=9081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=9081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=9081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}