As it is possible to make so that at a choice in there was a complete list - option . But when some option selected - remove all other options? Preferably in juqery .

First choice enter image description here

When something is chosen:

enter image description here

  • I apologize. Do not tell me the name of the font in the drop-down list and buttons ADD BUYER? I will be very grateful! - iKey
  • one
    'Open Sans', sans-serif - in the list, geometriabold - add - Vlad Shkuta
  • Do you think this interface strategy is a bit ... terrible? Ocheped the cursor and only reload the page and the new filling. - user207618
  • customer's design) there still will be a cross to reset - Vlad Shkuta

1 answer 1

Use the filter :not(селектор) - removes everything except the specified selectors

 $(document).ready(function () { $('#select').change(function () { $('#select option:not(#select option:selected)').remove(); }); }); 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <select id="select"> <option value="s1">s1</option> <option value="s2">s2</option> <option value="s3">s3</option> </select>