Skip to content

Instantly share code, notes, and snippets.

@sean-clayton
Created August 18, 2013 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean-clayton/6262387 to your computer and use it in GitHub Desktop.
Save sean-clayton/6262387 to your computer and use it in GitHub Desktop.
var liElement = $('<li>');
// The dummy href value of '#' ensures that the browser renders the
// <a> element as a clickable link.
liElement.load(function() {
displayVideoAnalytics(videoId);
});
// Call the jQuery.append() method to add the new <a> element to
// the <li> element, and the <li> element to the parent
// list, which is identified by the 'videoList' variable.
videoList.append(liElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment