I need to append jquery flexislider on ajax response. Below is my code: console.log(response.data);
$('.status').append(response.data);
$('.flexslider').flexslider({
animation: "slide",
slideshow: true,
animationSpeed: 1000,
animationLoop: true,
itemWidth: 311,
itemMargin: 5,
controlNav: false,
slideshowSpeed : 1000,
pauseOnHover : true,
pauseOnAction : true,
touch : true,
start: function(slider){
flexslider = slider;
}
});
it append only html not working slider.Anyone have idea about How to append flexislider on ajax response.If you have any idea about it let me know.