Created
August 18, 2013 16:03
-
-
Save sean-clayton/6262387 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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