garand / sticky

jQuery Plugin for Sticky Objects
Other
3.3k stars 1.06k forks source link

Element generated via ajax not sticking #264

Closed MarineLB closed 7 years ago

MarineLB commented 7 years ago

Hello,

I'm using your (great) plugin to make some elements stick. My problem is that it doesn't stick when the element is generated dynamically via ajax. How is that ?

Thank you :)

MarineLB commented 7 years ago

My bad. I was making the element stick only on document.ready. Fixed by creating a function that I call on document ready and on ajax request success :)