Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. var table_row = $('table').find('tr#'+pid);
  2. var name = table_row.find('td:nth-child(1)').html();
  3. table_row.find('td:nth-child(6)').html('<button type="button" id="what to write here" class ="save_db")>save</button> ');
  4.  
  5. var table_row = $('table').find('tr#'+pid);
  6. var name = table_row.find('td:nth-child(1)').html();
  7. table_row.find('td:nth-child(6)')
  8. .html('<button type="button" id="'+name+'" class ="save_db">save</button> ');
  9.  
  10. table_row.find('td:nth-child(6)').html`(
  11. '<button type="button" id="' + name + '" class ="save_db">save</button> '
  12. )`;
  13.  
  14. table_row.find('td:nth-child(6)').html('<button type="button" id="'+ name + '"
  15. class ="save_db")>save</button>');
  16.  
  17. table_row.setAttribute("id", "id_you_like");
  18.  
  19. var id = "btn1";
  20. var table_row = $('table').find('tr#'+pid);
  21. var name = table_row.find('td:nth-child(1)').html();
  22. table_row.find('td:nth-child(6)').html('<button type="button" id="'+id+'" class ="save_db")>save</button> ');
  23.  
  24. <button type="button" id='"+name+"' class= "save_db">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement