Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // I modified the widget so each entry will have a data-id attribute with the url for the detail view.
- var html = '<table>';
- $('table.archive-list tr').each(function() {
- var url = $(this).find('span:first').attr('data-id');
- var name = $(this).find('td a').text();
- html += '<tr><td>' + name + '</td><td>' + url + '</td></tr>';
- });
- $('body').html(html + '</table>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement