Last active
October 2, 2016 18:36
-
-
Save getanwar/356f84ac3e98a143c8b1 to your computer and use it in GitHub Desktop.
JS: Treehouse - Course List (console)
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
// course list | |
// copy this code to console and see result on the page | |
$('.video-22-icon').next().each(function(i) { | |
var el = $(this); | |
var title = el.parents('.stage-meta').find('h2').text(); | |
var list = '<br><h6>' + (i + 1) + '. ' + title + ': ' + el.text() + '</h6>'; | |
$('#syllabus-description').append(list); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment