SHARE
TWEET

Untitled

a guest Jan 12th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('body').on('focusout', 'table.lunch-days .textarea-editor', function (e) {
  2.         var els = document.querySelectorAll('.textarea-editor');
  3.         var thisElement = $(this);
  4.  
  5.         [].forEach.call(els, function (el) {
  6.                 iterateText(el);
  7.  
  8.                 var string = el.innerHTML;
  9.                 var parent = el.parentElement;
  10.                
  11.                 parent.querySelector('textarea').value = string;
  12.                 document.getElementsByTagName('textarea')[0].value = 'textnew';
  13.             }
  14.         );
  15.     });
RAW Paste Data
Top