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

268
Vistas
Getting User Input Value from Bootstrap Form

I have the following Code for an input field in Bootstrap:

<div class="form-group">
    <label for="f2">F</label>
    <input type="text" class="form-control" name="f2" id="f2">
</div>

I also have an external .js script which need to s receive the information the user inputs. How do I access the user input with my .js script?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

By using selector. like that: const i = document.getElementById('f2');

After this you have access to the input element. console.log(i.value)

about 4 years ago · Juan Pablo Isaza Denunciar

0

const inputEl = document.getElementById('f2') // get input from the DOM
const inputValue = inputEl.value
about 4 years ago · Juan Pablo Isaza Denunciar
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