how to get a span element with specific inner HTML value code example Example: change innertext javascript element.innerText = "Hello World";