Skip to content

Instantly share code, notes, and snippets.

@jab416171
Created November 25, 2011 18:57
Show Gist options
  • Save jab416171/1394207 to your computer and use it in GitHub Desktop.
Save jab416171/1394207 to your computer and use it in GitHub Desktop.
gcMessageDisplay.each(function(index, value) {
console.log("looping");
$('.next').eq(index).live('click', function() {
var parent = $(this).parent();
console.log(gcMessageDisplay);
console.log(index);
parent.html(gcMessageDisplay.eq(index+1));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment