12-18-2012 10:23 AM - edited 12-18-2012 10:25 AM
I've created a collapsible div using the JQMobile BB Theme. ( http://blackberry.github.com/jQueryMobile-BB10-The
<div data-role="collapsible" data-iconpos="right" id="OnyomiDiv">
<h1> Onyomi </h1>
<p id="Onyomi"> Data </p>
</div>
Then I'm trying to collapse the content when it's open using Javascript with the follwoing
$('#OnyomiDiv').trigger('collapse');
Has anyone been able to get something like this to work?
Solved! Go to Solution.
12-18-2012 11:12 AM
Probably you try to trigger wrong element..
$('.ui-collapsible').trigger('collapse') - work perfect with your saple link
12-18-2012 11:15 AM