It is necessary that when you click on the link, the picture and description change. They are put in different id and far apart on the page. For example, if you use such a function, it will change one and with the same data. And it is necessary that the data were taken from two different squeaks and inserted into different places.
function getColorList(id, type, desc, link) { jQuery.ajax({url: "/catalog/colors.php", dataType: "html", type: "GET", data: { c: id, types: type, desc: desc}, success: function(msg) { //alert(msg); document.getElementById('colCont').innerHTML = msg; }, error: function(XMLHttpRequest, textStatus, errorThrown) { //alert('Ошибка'); } }); };