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

149
Views
React.js check if select option selected

I have this code for select

<span>First Subject:</span>
<select name="firstPoint" onChange={e => handleInputs(e)}>
  <option value="0">-</option>
  <option value="4">A+</option>
  <option value="3.75">A</option>
  <option value="3.4">B+</option>
  <option value="3.1">B</option>
  <option value="2.75">C+</option>
  <option value="2.5">C</option>
  <option value="2.2">D+</option>
  <option value="2">D</option>
  <option value="1">F</option>
</select>

and this for input

<input
  type='number'
  name="firstHour"
  id='first-subject'
  min="0"
  max="3"
  placeholder='Credits hours'
  onChange={e => handleInputs(e)}
/>

screen for layout

enter image description here

I need If user enters a value in input like First subject must select option from select input for First subject

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!