Код: Выделить всё
$('table').on('click','#save', function(){
var getValueInput = $(this).closest('div').find('input').val();
$(this).closest('td').find('span.value').text(getValueInput);
$(this).closest('td').find('span.value').show();
$(this).closest('div').hide();
jQuery.ajax({
url: "conn/action.php",
method: "POST",
data: {ProdottiID:ProdottiID, Assorbimento:Assorbimento},
cache: false,
success: function(response)
{
alert("Record successfully updated");
}
});
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/78683253/bootstrap-table-update-mysql-database-from-ajax-jquery-click[/url]
Мобильная версия