I have the following jQuery code which is initiated on page load. It starts a slideshow.
$(document).ready(function() {
$.dothis({
option:1,
option:2,
slides:[
{image:'img1.jpg'},
{image:'img2.jpg'}
]
});
});
Now I want to add/remove images when the users clicks the body of the page. How do I add/remove items to the slides:[] object? Or how do I replace this object all together?
1 Answer