1
Good night ,
Next galley, I have a table from which I use the data from mysql , wanted to take the value of td ,and insert inside a TEXT that will appear inside the TD of the table with the value that was there so that it can be edited and updated in the database, I am trying to use Jquery to accomplish such feat but without success.
I tried something like this:
$(function(){
$('#ID_DA_TD').click(function(){
var teste = $('#ID_DA_TD').text();
$('#ID_DA_TD').html('<input type="text" class="form-control form-control-sm" id="upgrade" style="width:150px;">');
$('#upgrade').val(teste);
});
});
Excuse my ignorance but I’m beginner, vlw.
Also put the html code of the table
– fernandoandrade