Click to Create Image Slider
If the slider markup is not ready on page load, or you want to update the slider items on the fly, you can use the slider's reload function:
is a built-in function that will help:
- Load on demand - Populate slider dynamically by client event or AJAX
- Adding/Changing items on the fly to the slider
View the source of this page for the sample code.