Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda