You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Choice.js is great library, but for some one like me (and many) if we dont see more samples, or related documentation its hard to use the library/component. Even for simple action that add, edit or delete Choice items "Dynamically" is really hard for me, for example :
<labelfor="choices-single-default">Default</label><selectclass="form-control"
data-triggername="choices-single-default"
id="choices-single-default"
placeholder="This is a search placeholder"
><optionvalue="">This is a placeholder</option><optionvalue="Choice 1">Choice 1</option><optionvalue="Choice 2">Choice 2</option><optionvalue="Choice 3">Choice 3</option></select><script>vargenericExamples=newChoices(document.querySelector('[data-trigger]'),{placeholderValue: 'This is a placeholder set in the config',searchPlaceholderValue: 'This is a search placeholder',choices: [],});</script>
Same problem here to set dynamic value
In my project, the form is hidden by default, selects are filled ...
When user click edit button I must fill form with my object values
Unfortunately, setChoiceByValue work with choice-js instance and I don't see how I can get it from my select
I create JSFiddle to explain more what I want to achive.
Hi, Choice.js is great library, but for some one like me (and many) if we dont see more samples, or related documentation its hard to use the library/component. Even for simple action that add, edit or delete Choice items "Dynamically" is really hard for me, for example :
when im trying to delete an item, following "documentation" https://github.com/Choices-js/Choices#removeactiveitemsbyvaluevalue
i cant delete the item.
i've tried
but still none of the codes can delete the item.
The text was updated successfully, but these errors were encountered: