I would like when saving an input and updating the div with the new information, in the return message "success" of ajax, also make the impression of the div. Example
success : function(response){
$("#containerResultado").html(response);
var divToPrint = document.getElementById('divresultado');
var popupWin = window.open('', '_blank', 'width=800,height=600');
popupWin.document.open();
popupWin.document.write('<html><body onload="window.print()">' + divToPrint.innerHTML + '</html>');
popupWin.document.close();
}