There is an object. How to write its values in the attribute val input ? The structure of the object is as follows:
Object { Текст: "1", Текст2: "2" } I am writing this code in value="[object Object]" . Tell me how to fix it?
$.each(map, function(i,e){ $("#listProduct").val($(e) + ", "); })