title: Get source from a <tr> element with Jquery
body: <p>I'm trying to get the source of a tr element using JQuery.</p>
  
  <p>For this I'm using the selector below :</p>
  
  <pre><code>$('#mygrid &gt; table tr')
  </code></pre>
  
  <p>On console I can see this selector returns me this :</p>
  
  <pre><code>&lt;tr class="red-background"&gt;
  &lt;td class="date"&gt;10/07/2018&lt;/td&gt;
  &lt;td class="hora"&gt;13:09&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>The return is actually an object, not a string :</p>
  
  <pre><code>typeof $('#grid-historicos &gt; table tr')
  "object"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RWhzH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RWhzH.jpg" alt="enter image description here"></a></p>
  
  <p>So I can't use the method <code>.html()</code> </p>
  
  <p>So what is the right way to get the HTML source of the  element? I need only this part as a string :</p>
  
  <pre><code>&lt;tr class="red-background"&gt;
  </code></pre>