You will need to bind the code before the item is actually added. I think. In this example, I just linked the click event because I don't have a slider code.
http://jsfiddle.net/4vwUd/1
$('button').click( function() { //turn your div into a jquery object var $cycleBlock = $('<div class="cycleDuration"></div>'); //bind the event $cycleBlock.bind('click', function() { alert(); }); //append to the list $('#cycles').append('<li />').children('li:last').append($cycleBlock); });
source share