daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var rowElem = $('<tr id="'+ key + '" class="queryRow"> </tr>');
  2. rowElem.append($('<td class="queryTitleCol">' + key + '</td>'));
  3. var colElem = $('<td class="queryValueCol"></td>');
  4. var textAreaElem = $('<textarea rows="10" cols="75"/>');
  5. colElem.append(textAreaElem);
  6. rowElem.append(colElem);
  7. textAreaElem.val(value);
  8. var btnCol = $(
  9.             '<td valign="top">'
  10.             + '<button style="width:42px; vertical-align:middle; margin:2px;" title="delete">'
  11.             +   '<span class="ui-icon ui-icon-trash" style="float:left;"/>'
  12.             + '</button>'
  13.             +'</td>');
  14.     rowElem.append(btnCol);
  15.     $("button", btnCol).click(action);
  16. }
  17.    
  18. function action() {
  19. var rowElem = $(this).closest("tr");
  20. var labelTD = $(".queryTitleCol", rowElem);
  21. }
  22.    
  23. rowElem.find('td.queryTitleCol');
  24.    
  25. var label = $(".queryTitleCol", rowElem)[0].innerHTML;
  26.    
  27. var label = $(".queryTitleCol", rowElem).text();
  28.    
  29. $('button').click(function(){
  30.   $(this).prev('.queryTitleCol').text();
  31. });
  32.    
  33. function action() {
  34.      var titleCol = $(this).parent().parent().find('td:eq(0)').text();
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top