Closed hercross closed 2 years ago
Disabled options are not supported right now, the best practice for now is to remove the disabled values first
And how I can do that?. If I set disable in the select, doesn´t works... How can I remove the disabled value? Thanks
El mar, 25 may 2021 a las 12:32, Dragon @.***>) escribió:
Disabled options are not supported right now, the best practice for now is to remove the disabled values first
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dragonofmercy/Tokenize2/issues/89#issuecomment-847753721, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDVQ6I4FQ7P2CZCG4G5AZ3TPN4CTANCNFSM45HHHHAA .
I've checked my example if I do it like this its works perfectly, the disabled options (test 2, test 3) are not shown in the dropdown
<select class="tokenize-sample-demo1" multiple>
<option value="test 1">test 1</option>
<option value="test 2" disabled>test 2</option>
<option value="test 3" disabled>test 3</option>
<option value="test 4">test 4</option>
<option value="test 5">test 5</option>
<option value="test 6">test 6</option>
<option value="test 7">test 7</option>
</select>
Yes, hanks.. but i need disable select not option... disable al select...
Is it possible?
Thanks
El mié., 26 may. 2021 9:30, Dragon @.***> escribió:
I've checked my example if I do it like this its works perfectly, the disabled options (test 2, test 3) are not shown in the dropdown
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dragonofmercy/Tokenize2/issues/89#issuecomment-848537308, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDVQ6LPZO3NTBVGCHLJS53TPSPQXANCNFSM45HHHHAA .
Ah ok ! Yes just add disabled to the select
<select class="tokenize-sample-demo1" multiple disabled>
<option value="test 1">test 1</option>
<option value="test 2">test 2</option>
<option value="test 3">test 3</option>
<option value="test 4">test 4</option>
<option value="test 5">test 5</option>
<option value="test 6">test 6</option>
<option value="test 7">test 7</option>
</select>
or use api with javascript
$('.tokenize-sample-demo1').tokenize2().disable();
OK, the first option, add disbled in html code, I've done it before and doesn't works, but I'm going to try again and the second options.
Thanks
El mié, 26 may 2021 a las 9:42, Dragon @.***>) escribió:
Ah ok ! Yes just add disabled to the select
or use api with javascript
$('.tokenize-sample-demo1').tokenize2().disable();
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dragonofmercy/Tokenize2/issues/89#issuecomment-848544790, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDVQ6PJXVL23TYA2JWPYZDTPSQ5BANCNFSM45HHHHAA .
Hi, I'm using the last version and I've put disabled option in my select, but never disabled. Can I use it? How can I use it? Thanks