How do can I remove the only text "You" from the string and only left the text "Kevin Yam, Bryan Ooi"
Output : Kevin Yam, Bryan Ooi
var panel = document.getElementById("panel" + (getlikeid));
var you = document.getElementById("only_you" + (getlikeid));
if (you.innerText === "You") {
panel.remove();
} else if (you.innerText !== "You") {
//execute code
}
<span id="only_you11"> You, Kevin Yam, Bryan Ooi</span>