JQuery - Clone View [object Object]

JQuery - Clone View [object Object]

I am using clone to copy an input and when viewing it on the page I get [object Object].

I clone it as follows:

  1. var clonado =$('#Descripcion').clone();

And I visualize it as follows:

  1. var nuevaFila = "<tr>";
  2. var clonado =$('#Descripcion').clone();

  3. nuevaFila += "<td>" + clonado + "</td>";

  4. $("#orderdetailsItems").append(nuevaFila);

And displaying it comes out [object Object] instead of cloned input. I have tried to put cloned.html () and I no longer get [object Object], but I get empty.

To prove that the cloning is correct I have put the following instruction and it clones it perfectly.

  1. $('#orderItems').append(clonado);
But what I need is that he does it to me is to put it inside the td as I am concatenating it in new row.

Greetings and thank you.