hmm _ why is this input ignoring input.value | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

hmm _ why is this input ignoring input.value

So, its' on this website. log in page. on the console, I get the input, then put input.value = "myUser"; and then click sign in, it says "please enter your user name." Even though I just said the input's value is "myUser". But then when I type "myUser", it works. I also tried to do it with a JS injector, and it didn't work. It's like the input doesn't allow anything but you pressing the keyboard.

21st Apr 2020, 4:09 AM
Ready To Learn
Ready To Learn - avatar
2 Answers
+ 1
Sorry, but it really is difficult to understand your situation just by imagining. So I suggest you to save the code in SoloLearn and share the saved code link within your thread Description. See this in case you didn't know 👇 https://www.sololearn.com/post/75089/?ref=app
21st Apr 2020, 5:24 AM
Ipang
0
@Ipang So, it's a normal login page in this website. in the username input, you type "myUser" (your user name), and click login, you are logged in. But I try to give the input's value through the console. So, userInput.value = "myUser". and that value displays on the input. Then I click on login, it clears (deletes) the "myUser" and it says please "enter user name". It's like the input doesn't take any computer programs like you physically have to press a key to input. maybe they have a protection or something..
21st Apr 2020, 8:43 PM
Ready To Learn
Ready To Learn - avatar