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

121
Views
Is there a way in JavaScript to use document.forms for a select tag get a if else compound condition to work

I know you can use document.forms to check if a radio button or checkbox is checked but I am not sure how you could this for a select since it has multiple options.

This is the code I thought I could use. JavaScript:

var pick_deliv = document.forms[order] 
[pick_deliv].checked;

HTML:

<form>
    <select name="pick_deliv" id="pick_deliv">
    <option value="pick_up">Pick up </option>
    <option value="delivery">Delivery </option> 
    </select>
  </form
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!