Insert jQuery input into a table template
<p>I'm stuck with something, I have a table template into a JavaScript variable like this:</p>

<pre><code>var myTab= "&lt;table id='mag-1'&gt;&lt;tr&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;"+libellesMag['nom']+"&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;";
</code></pre>

<p>Where <code>libellesMag['nom']</code> is a jQuery variable which contains an input type text.</p>

<p>When I <code>append()</code> this variable my input is displayed but when I try to concatenate my variable in a string and <code>append()</code> this string my <code>libellesMag['nom']</code> display <code>[Object object]</code></p>

<p>Do you have any idea how to display my input?</p>

<p>EDIT: <code>console.log(libellesMag['nom'])=[input#monapp_homebundle_enseignetype_magasins_1_nomMagasin, prevObject: jQuery.fn.jQuery.init[1], context: div, selector: ":nth-child(2)", jquery: "1.9.1", constructor: function…]</code></p>
