Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.each($('div.graph'), function() {
- var t = $(this).find('h2').text();
- var l = $(this).attr('id');
- $('#tabs').append('<li><a href="#' + l + '">' + t + '</a></li>');
- $(this).find('h2').hide();
- });
- // wordt…
- $('div.graph').each(function() {
- var t = $(this).find('h2').text();
- var l = $(this).attr('id');
- $('#tabs').append('<li><a href="#' + l + '">' + t + '</a></li>');
- $(this).find('h2').hide();
- });
Add Comment
Please, Sign In to add comment