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

267
Views
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 answers
Answer question

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 Report

0

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