Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var products = [];
- jQuery('.dottedlink:contains("Edit")').each(function(){
- var $ = jQuery;
- console.log($(this));
- var row = $(this).closest('tr');
- products.push({
- 'name' : row.find('td:eq(1)').text(),
- 'displayname' : row.find('td:eq(2)').text(),
- 'price' : row.find('td:eq(5)').text(),
- 'desc' : row.find('td:eq(3)').text(),
- 'link' : row.find('td:eq(1) a').attr('href'),
- 'edit' : $(this).attr('href')
- });
- });
Add Comment
Please, Sign In to add comment