JSFiddle - React, Tailwind, and code Playground

by Norlihazmey Ghazali

JavaScript

var Data = '<table align="left" border="1" cellpadding="1" cellspacing="1" style="width: 100%;">    <tbody>     <tr><td><textarea cols="80" id="editor" name="editor" rows="10">This is my textarea to be replaced with Editor.</textarea><textarea cols="80" id="editor" name="editor" rows="10">This is my textarea to be replaced with Editor.</textarea></td>     </tr>       <tr>            <td colspan="2">&copy; 2016 Vishmay Shah</td>       </tr>   </tbody></table><p>&nbsp;</p>';

var g = $(Data).find('[id="editor"]').attr('id', function(i, old) {
  return old + i;
}).end();
$('body').append(g)