${devices.map(item => { const dhid = $(".deviceSelect").filter(`[data=${item}]`)[0].attributes["data-device-dhid"].value; const name = $(".deviceSelect").filter(`[data=${item}]`)[0].attributes["data-device-vname"].value; return `${dhid}` }).join(" ")}