document.getElementById('accessories').innerHTML = (string1+" ,"+string2); <tr> <td>Аксессуары:</td> <td id="accessories"> </td>