How to set disabled option in select2?

QuestionsHow to set disabled option in select2?
Chao Shun Jenq asked 8 years ago

Is it possible to set some of items "disabled" in dropdown menu of select2?

4 Answers
Abu Ghufran answered 8 years ago

Working code: https://gist.github.com/gridphp/ac8c1c7fc3e3e90a94afef4d1f593806
Line 31 and 144.

One line 147, It disable select2 option with value "1"

Abu Ghufran answered 8 years ago
Chao Shun Jenq answered 8 years ago

Hi,Abu

Thank you for your code.

Rgd,

Chao Shun Jeng

ahqq answered 5 years ago

PO CARALHO

Your Answer

0 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?