{"id":7891,"date":"2015-11-05T13:42:45","date_gmt":"2015-11-05T13:42:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/05\/bootstrap-select-picker-prevent-close-open-source-projects-silviomoreto-bootstrap-select\/"},"modified":"2015-11-05T13:42:45","modified_gmt":"2015-11-05T13:42:45","slug":"bootstrap-select-picker-prevent-close-open-source-projects-silviomoreto-bootstrap-select","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/05\/bootstrap-select-picker-prevent-close-open-source-projects-silviomoreto-bootstrap-select\/","title":{"rendered":"Bootstrap Select-Picker prevent close-open source projects silviomoreto\/bootstrap-select"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/B1qTo.jpg?s=128&amp;g=1\" \/> <strong>Skelly<\/strong><\/p>\n<p>You can add some jQuery to have it auto open, and re-open when anywhere in the document is clicked (causing it normally to lose focus and close)..<\/p>\n<pre><code>\/\/auto open\n$('[data-id=mySel]').trigger('click');\n\n\/\/stay open\n$(document).on(\"click\", function () {\n   $('[data-id=mySel]').trigger('click');\n});\n<\/code><\/pre>\n<p>Demo: <strong>http:\/\/www.bootply.com\/77umTeRI6n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Skelly You can add some jQuery to have it auto open, and re-open when anywhere in the document is clicked (causing it normally to lose focus and close).. \/\/auto open $(&#8216;[data-id=mySel]&#8217;).trigger(&#8216;click&#8217;); \/\/stay open $(document).on(&#8220;click&#8221;, function () { $(&#8216;[data-id=mySel]&#8217;).trigger(&#8216;click&#8217;); }); Demo: http:\/\/www.bootply.com\/77umTeRI6n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7891","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7891"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7891\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}