Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var countH2 = 0;
- $('.content-page article h2').each(function() {
- countH2++;
- $(this).attr('id', 'head-'+countH2 );
- $('.content-article .list').append('<li><i class="icon-correct-symbol"></i><a href="#head-'+countH2+'">'+$(this).text()+'</a></li>');
- });
Add Comment
Please, Sign In to add comment