I'm trying to execute a call to an external program to create content in a DIV inside a collapsible in JQuery Mobile, to have some code run when a div in a JQM collapsible appears when the collapsible is opened. I'm trying to use the jquery.appear plugin (https://github.com/morr/jquery.appear) as follows:
I'm obviously missing something because the div isn't updating when the collapsible is opened. Would appear work in this instance? Or is there a more effective way to achieve this "on demand" loading of the content in the collapsible?