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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -