How to manipulate collapsible element programmatically.

How to manipulate collapsible element programmatically.

Hello.

I can expand and collapse this by clicking the element.

  1. <div data-role="collapsible" data-collapsed="true" id="TestCollapsible">
  2.     <h2>title</h2>
  3.     ...
  4. </div>

However, I need to manipulate collapsible element like following:

  1. $("#TestCollapsible").collapsible("expand");

I could not find such a method.

Any help would be greatly appreciated.