I need to replace the text English from option value with javascript. Code is next:
<div>
<select name="input_14" id="input_29_14">
<option value="English">English</option>
</select>
</div>
So this is what I tried:
document.querySelector("div.selector option[value=English]").text = "Inglés";
But it doesn't change the text. Anyone can provide me an alternative function?
Thank you
div.selectorwon't work