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

364
Views
¿Cómo configuro un valor de selección en materializar CSS? (SIN JQUERY)

Estoy tratando de establecer el valor de mi selección desplegable, pero, francamente, no hay mucha documentación sobre nada de esto en ninguna parte. Esto es todo lo que obtienes: https://materializecss.com/select.html

Estoy tratando de hacerlo de la manera que no es jQuery.

Este es el código que he probado:

1.

 let instance = M.FormSelect.getInstance(document.getElementById('ptType')); instance.input = document.getElementById('3');
 let instance = M.FormSelect.getInstance(document.getElementById('ptType')); instance.input = '3'
 let instance = M.FormSelect.getInstance(document.getElementById('ptType')); instance.value = '3' // this one changes the "internal value", but doesn't show it on the actual drop down.

He buscado muchas veces una solución y nunca ha aparecido nada. No estoy seguro si alguien aquí lo sabría. ¡Por favor ayuda!

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!