Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

207
Views
javascript can't change input value through console

hi so I can't change the value of classname, as it only changes the view not truly change I tried using

var search = document.getElementsByClassName("r-30o5oe");
var s = search[0];
s.value = "0.1";

https://imgur.com/a/FJTvyPU I've tried using setattribute but it never worked with getelementsbyclassname for me, only works with id (which that element doesn't have), and if I tried using

var search = document.getElementsByClassName("r-30o5oe")[0];
search.setAttribute("value", "2")

but it says undefined I just wanna change the value of twitter's search by console by classname its weird if I tried doing that to this page it works tho

document.getElementsByClassName("s-input__search")[0].value = "0.1"

any solutions?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!