Good evening,
Next, I have a table from which I generate the data from mysql, I want to get the value of td, and insert inside a TEXT that will appear inside the table TD 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 a feat but without success. / p>
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);
});
});
I'm sorry for my ignorance but I'm a beginner, vlw.