The "show" event doesn't appear to be working on a collapsible that is dynamically created. Multiple panels stay open when calling the javascript function. Clicking the panel headers still works fine, and if I manually click the panels first, then the "show" method appears to work. But ONLY if I click on the panel headers first. Any ideas?
JSFiddle example: http://jsfiddle.net/victoryismine06/N6rey/
//Click handler
$( "#btnOpen" ).click(function() {
var idx = $("#idx").val();
$("#accordion2 #collapse" + idx).collapse('show');
});