javascript - open collapsible div programatically -
javascript - open collapsible div programatically -
i'm using jquery mobile , have collapsible div want expand after ajax request.
<div id="collapsiblediv"/> function displaydata() { $.mobile.loading('show'); $.ajax({ ... success: function (result) { $("#" + code).html(result); $.mobile.loading('hide'); $("#collapsiblediv").trigger('collapse'); }, error: ... }); };
according api, expand div
$( "#collapsiblediv" ).collapsible( "expand" );
javascript jquery html
Comments
Post a Comment