{"id":1016,"date":"2013-02-19T14:55:57","date_gmt":"2013-02-19T13:55:57","guid":{"rendered":"https:\/\/ridgesolutions.ie\/?p=1016"},"modified":"2013-10-18T10:43:30","modified_gmt":"2013-10-18T09:43:30","slug":"twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript","status":"publish","type":"post","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/","title":{"rendered":"Twitter Bootstrap programmatically open or close an Accordion with javascript"},"content":{"rendered":"<p><strong>Q:<\/strong> I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript?<\/p>\n<p><strong>A:<\/strong> Use the .collapse() function to open, close or toggle a collapsible accordion section. <\/p>\n<p>Consider this 2 section accordion:<\/p>\n<p>[crayon]<\/p>\n<div class=\"accordion\" id=\"accordion2\">\n<div class=\"accordion-group\">\n<div class=\"accordion-heading\">\n        <a class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion2\" href=\"#category-1\"><\/p>\n<p>            Camera Settings<\/p>\n<p>        <\/a>\n        <\/div>\n<div id=\"category-1\" class=\"accordion-body collapse\" style=\"height: 0px; \">\n<div class=\"accordion-inner\">\n<p>The camera settings<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"accordion-group\">\n<div class=\"accordion-heading\">\n        <a class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#accordion2\" href=\"#category-2\"><\/p>\n<p>            Acquisition Settings<\/p>\n<p>        <\/a>\n        <\/div>\n<div id=\"category-2\" class=\"accordion-body collapse\">\n<div class=\"accordion-inner\">\n<p>The acquisition settings.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>[\/crayon]<br \/>\nThen, as an example, to automatically open the second accordion section (identified by &#8216;#category-2&#8217;) when the page loads you could do the following:<\/p>\n<p>[crayon]<br \/>\n<script>\n$(document).ready(function() {\n    $('#category-2').collapse('show');\n});\n<\/script><br \/>\n[\/crayon]<br \/>\nThis technique can be used to automatically re-open a previously open accordion section on page refresh, to do this first use the history api to update the current page location whenever a user clicks to open an accordion section &#8211; store an id to the open section in the page arguments.<\/p>\n<p>Then when the page loads, for example on a refresh, if this argument exists parse it from the page loaction and then call collapse(&#8216;show&#8217;) to open the section&#8230;<\/p>\n<p>More details on .collapse() can be found <a href=\"http:\/\/www.w3resource.com\/twitter-bootstrap\/collapse.php\">here<\/a>.<\/p>\n<div>&nbsp;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[255,212,254,252],"class_list":["post-1016","post","type-post","status-publish","format-standard","hentry","category-tech-stuff","tag-accordion","tag-javascript","tag-twitter-bootstrap","tag-web-app"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kevin Godden\"\/>\n\t<meta name=\"google-site-verification\" content=\"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/\" \/>\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=\"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Twitter Bootstrap programmatically open or close an Accordion with javascript\" \/>\n\t\t<meta property=\"og:description\" content=\"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-02-19T13:55:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-10-18T09:43:30+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Twitter Bootstrap programmatically open or close an Accordion with javascript\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition\" \/>\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.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#article\",\"name\":\"Twitter Bootstrap programmatically open or close an Accordion with javascript\",\"headline\":\"Twitter Bootstrap programmatically open or close an Accordion with javascript\",\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#articleImage\",\"width\":400,\"height\":81},\"datePublished\":\"2013-02-19T14:55:57+00:00\",\"dateModified\":\"2013-10-18T10:43:30+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#webpage\"},\"articleSection\":\"Tech Stuff, accordion, javascript, twitter bootstrap, web app\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"name\":\"Tech Stuff\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"position\":2,\"name\":\"Tech Stuff\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#listItem\",\"name\":\"Twitter Bootstrap programmatically open or close an Accordion with javascript\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#listItem\",\"position\":3,\"name\":\"Twitter Bootstrap programmatically open or close an Accordion with javascript\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"name\":\"Tech Stuff\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#organizationLogo\",\"width\":400,\"height\":81},\"image\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/\",\"name\":\"Kevin Godden\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kevin Godden\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/\",\"name\":\"Twitter Bootstrap programmatically open or close an Accordion with javascript\",\"description\":\"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2013\\\/02\\\/19\\\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"datePublished\":\"2013-02-19T14:55:57+00:00\",\"dateModified\":\"2013-10-18T10:43:30+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Twitter Bootstrap programmatically open or close an Accordion with javascript","description":"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition","canonical_url":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#article","name":"Twitter Bootstrap programmatically open or close an Accordion with javascript","headline":"Twitter Bootstrap programmatically open or close an Accordion with javascript","author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/#articleImage","width":400,"height":81},"datePublished":"2013-02-19T14:55:57+00:00","dateModified":"2013-10-18T10:43:30+00:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#webpage"},"articleSection":"Tech Stuff, accordion, javascript, twitter bootstrap, web app"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","position":1,"name":"Home","item":"https:\/\/www.ridgesolutions.ie","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","name":"Tech Stuff"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","position":2,"name":"Tech Stuff","item":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#listItem","name":"Twitter Bootstrap programmatically open or close an Accordion with javascript"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#listItem","position":3,"name":"Twitter Bootstrap programmatically open or close an Accordion with javascript","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","name":"Tech Stuff"}}]},{"@type":"Organization","@id":"https:\/\/www.ridgesolutions.ie\/#organization","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","url":"https:\/\/www.ridgesolutions.ie\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#organizationLogo","width":400,"height":81},"image":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author","url":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/","name":"Kevin Godden","image":{"@type":"ImageObject","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kevin Godden"}},{"@type":"WebPage","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#webpage","url":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/","name":"Twitter Bootstrap programmatically open or close an Accordion with javascript","description":"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/#website"},"breadcrumb":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"creator":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"datePublished":"2013-02-19T14:55:57+00:00","dateModified":"2013-10-18T10:43:30+00:00"},{"@type":"WebSite","@id":"https:\/\/www.ridgesolutions.ie\/#website","url":"https:\/\/www.ridgesolutions.ie\/","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"}}]},"og:locale":"en_US","og:site_name":"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer","og:type":"article","og:title":"Twitter Bootstrap programmatically open or close an Accordion with javascript","og:description":"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition","og:url":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/","article:published_time":"2013-02-19T13:55:57+00:00","article:modified_time":"2013-10-18T09:43:30+00:00","twitter:card":"summary","twitter:title":"Twitter Bootstrap programmatically open or close an Accordion with javascript","twitter:description":"Q: I have a nice accordion in my web app set-up in twitter bootstrap but how can I programmatically open or close a section using javascript? A: Use the .collapse() function to open, close or toggle a collapsible accordion section. Consider this 2 section accordion: [crayon] Camera Settings The camera settings Acquisition Settings The acquisition"},"aioseo_meta_data":{"post_id":"1016","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,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-09-13 21:43:33","updated":"2025-07-15 22:10:19","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\" 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:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/\" title=\"Tech Stuff\">Tech Stuff<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTwitter Bootstrap programmatically open or close an Accordion with javascript\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ridgesolutions.ie"},{"label":"Tech Stuff","link":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/"},{"label":"Twitter Bootstrap programmatically open or close an Accordion with javascript","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2013\/02\/19\/twitter-bootstrap-programmatically-open-or-close-an-accordion-with-javascript\/"}],"_links":{"self":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/1016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/comments?post=1016"}],"version-history":[{"count":0,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/1016\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/media?parent=1016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/categories?post=1016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/tags?post=1016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}