title: Converting a Table Row to array [ By Row ID ]
body: <p>Below is my HTML Table Row </p>
  
  <p>I am trying to get it into an array where td have set   <code>contenteditable="true"</code></p>
  
  <pre><code>&lt;tr id="row1" role="row" class="odd"&gt;
  &lt;td id="edit1" class="sorting_1"&gt; 
  &lt;a id="editbtn_1" disabled=""&gt;&lt;i class="fa fa-pencil-square-o fa-lg" aria-hidden="true" style="color:green"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;1&lt;/td&gt;
  &lt;td contenteditable="true"&gt;15310&lt;/td&gt;
  &lt;td contenteditable="true"&gt;Abhishek Upadhyay&lt;/td&gt;
  &lt;td id="dp1" contenteditable="true"&gt;01-09-2017&lt;/td&gt;
  &lt;td id="dp1" contenteditable="true"&gt;30-10-2017&lt;/td&gt;
  &lt;td contenteditable="true"&gt;Haryana&lt;/td&gt;
  &lt;td contenteditable="true"&gt;Mairwa&lt;/td&gt;
  &lt;td&gt;31-10-2017&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I got below code from a Stack Overflow Post to get it done  as below</p>
  
  <pre><code>var id = this.id;
  var recordId = id.replace("editbtn_", "").trim();
  var row = $(this).parents().parents().attr('id');
  row = '#tbl_Schedule_Update ' + row;
  var contents = $(row).find('td[contenteditable=true]');
  var contentArray = [];
  for (i = 0; i &lt; contents.length; i++) {
      contentArray[i] = contents[i].innerHTML;
  }
  </code></pre>
  
  <p>Till getting row id everything is fine , in row variable I am getting row1.</p>
  
  <p>But in below line I am expecting an array , </p>
  
  <pre><code>var contents = $(row).find('td[contenteditable=true]');
  </code></pre>
  
  <p>But its coming as undefined and no error in console log .</p>
  
  <p>How can I get it done into array ?</p>