how to get inner text without span code example Example: js get innertext minus the span text Click to copydocument.getElementById("listItem").childNodes[0].nodeValue;