Grepper Logo

select2 remove all options and add one element

Technical Problem Cluster First Answered On November 5, 2021 Popularity 10/10 Helpfulness 7/10

Contributions From The Grepper Developer Community

Contents

Code Examples

  • select2 clear selected

  • Related Problems

  • select2 remove all options except one
  • select2 remove all options
  • select2 remove all options and add one element
  • select2 delete tag
  • clear select2 options
  • add empty option to select2
  • remove options jquery
  • destroy select2
  • select2 disable search
  • delete all options from select jquery
  • remove option from select jquery
  • remove all options from select jquery except first
  • jquery clear select options
  • can't remove options from select javascript
  • Select Options From List Select Box & Remove By Name

  • TPC Matrix View Full Screen

    select2 clear selected

    0
    Popularity 10/10 Helpfulness 7/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Nov 05 2021
    hirohito
    151 Answers  Avg Quality 7/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.