Grepper Logo

select2 remove all options except one

Technical Problem Cluster First Answered On August 3, 2022 Popularity 8/10 Helpfulness 10/10

Contributions From The Grepper Developer Community

Contents

Code Examples

  • js select remove all options javascript

  • Related Problems

  • select2 remove all options except one
  • select2 remove all options
  • select2 remove all options and add one element
  • clear select2 options
  • destroy select2
  • select2 delete tag
  • select2 disable search
  • remove all options from select jquery except first
  • delete all options from select jquery
  • add empty option to select2
  • remove options jquery

  • TPC Matrix View Full Screen

    js select remove all options javascript

    3
    Popularity 8/10 Helpfulness 10/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Aug 03 2022
    Joyous Jaguar
    69 Answers  Avg Quality 9/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.