Finally could apply a solution: Replace the way how it's show the result from the ajax live search to this:
COD: ' . $codice . ' - DESC: ' . $articolo . '
For the Javascript, replace it with JQuery:
$(document).ready(function(){
$(".child span").click(function(){
code = $(this).parent().attr('data-id');
articolo = $(this).parent().attr('data-id2');
window.opener.$('#codice').val(code);
window.opener.$('#articolo').val(articolo);
window.close();
});
})
Thank you all. Valter.