Input em uma td com jquery

05/11/2018

0

Bom dia, gostaria de saber como faço para realizar inputs em uma <td> dinâmica com jquery.

$(".addRows"+n+"").on('click',function(){
//alert(n);
//Variável que recebe a linha que será adicionada na tabela.
var newRowContent = '<tr>';
newRowContent += '<td>'+n+' ENTREGA</td>';
newRowContent += '<td contenteditable="true" class="num_pedido" id = "numPedido" ></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td></td>';
newRowContent += '<td class="actions">';
newRowContent += '<button class="btn btn-large btn-danger removebutton" type="button">Remover</button> </tr>';
newRowContent += '</tr>';
$(newRowContent).appendTo($("#tab"+n+" > tbody"));
liveTableData.reset();

});
Antônio Silva

Antônio Silva

Responder

Posts

27/02/2019

Angelo Rubin

O você quer dizer com realizar inputs?
Responder

Assista grátis a nossa aula inaugural

Assitir aula

Saiba por que programar é uma questão de
sobrevivência e como aprender sem riscos

Assistir agora

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar