jquery-expander icon indicating copy to clipboard operation
jquery-expander copied to clipboard

not working when i set data using ajax

Open socialinfotech215 opened this issue 7 years ago • 2 comments

not working when i set data using ajax so how can i solve this issue?...

socialinfotech215 avatar Jan 19 '18 06:01 socialinfotech215

I'm not sure exactly what the circumstances are. If you could provide some code that shows the problem, that would be helpful.

One thing to note, though, is that the content has to be in the document before you can act on it. So if you are inserting content with ajax, you should call .expander() on that content in a callback after it has been inserted. Something like:

$.ajax('/some/content')
.then(function(html) {
  $(html).appendTo('#mydiv');
  $('#mydiv').find('.something-to-expand').expander();
})

kswedberg avatar Jan 20 '18 15:01 kswedberg

thanks its working... but how can i stop load content when first time page load...??

socialinfotech215 avatar Mar 22 '18 05:03 socialinfotech215