The second click event that is binded to $("play") does not execute. How can i bind another click event under a click event? I cant get the data newNumber if i write the second click event outside the first click event.
This piece of code is in the slide() function.
var that = this;
$("#stop").click(function(){
clearInterval(set);
var newNumber = [num, numb, list]; //the value needed by click event that is binded to "play"
$("play").click(newNumber, function() {
num = newNumber[0];
numb = newNumber[1];
list = newNumber[2];
that.slide(image, num, list, numb);
});
});
new Number=[num, numb, list]line to theplayevent?$('play')selector implies an element<play />which doesn't exist. Try binding to the id$('#play')or class$('.play')depending on the appropriate situation and your given markup...