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

213
Views
how to disable the selected option from dropdown selection not to be selected again when it is selected in first dropdown option in php

I have class project which I have to submit monday on student department selection system in php.I face difficulty on some part.I want to get student's department selection in order and store it in database.For example : when the student select medicine selection ,I want the selected option hidden from the second selection options using php and mysql and also javascript.Help me please code snippet..

<label>select your first choice</label>
<select class="custom-select" name="choice_1" required>
    <option value="">Choose ...</option>
    <option value="Engineering">Engineering</option>
    <option value="Medicine">Medicine</option>
    <option value="Pharmacy">Pharmacy</option>
</select>

<label>select your second choice</label>
 <select class="custom-select" name="choice_2" required>
     <option value="">Choose...</option>
     <option value="Engineering">Engineering</option>
     <option value="Medicine">Medicine</option>
     <option value="Pharmacy">Pharmacy</option>
</select>
 <label>select your third choice</label>
 <select class="custom-select" name="choice_3" required>
      <option value="">Choose...</option>
      <option value="Engineering">Engineering</option>
      <option value="Medicine">Medicine</option>
      <option value="Pharmacy">Pharmacy</option>
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!