I have a problem with updating html element with javascript code. I'm trying to update html text input on google chrome console. For ex. cpuboss . com here is some html code from cpuboss
<input placeholder="find a cpu" name="query" type="text" id="product-lookup" autocomplete="off" class="">
I tried almost all code examples i found on stackoverflow but i couldn't update the text element.
document.getElementsByName('query').value = "test"
I tried .value .innerhtml .attribute etc. etc. but they doesn't work. Can someone help me why these codes not working ?