Zaiton Zaiton - 1 month ago 5x
Javascript Question

Setting the value of an imput box - Javascript

I'd like to know how to manually set a value to that box, similar to how I'd write it on the keyboard. The box itself doesn't have an ID so I can't use

so I'm kinda stuck.

Here's a picture for reference.

Basically what I want to do is go to console and set the value of that box equal to 123 for example, without having to click on it with my mouse and type it on the keyboard. Something like
getElementByID.value = 15
for instance.

Thank you


Try this