Comments (6)
if you pull the list live from the server, you can serve the newly created option no?
from bootstrap5-tags.
If I use live-server, it works as far as returning most up to date list of existing tags, but on pageload I don't have any of my pre-selected options rendered.
from bootstrap5-tags.
adding selected options works like this
Lines 927 to 932 in 3869ab8
from bootstrap5-tags.
Gotcha- so data-items needs to list all the possible options that were available at pageload?
from bootstrap5-tags.
yes!
it also work by simply adding regular options, i've tried this here
Lines 937 to 944 in 6bf074c
from bootstrap5-tags.
Got it working now, thanks so much! Very greatly appreciated!! :)
from bootstrap5-tags.
Related Issues (20)
- removeAll() does'nt work if additem() was used HOT 3
- Items in OptGroup selected before init are not added as labels HOT 2
- css class are overwritten on initialization HOT 2
- Is possible to copy and paste multiple tags HOT 7
- Suggestion: Adding a setItem method HOT 12
- data-selected not working for 'new' values HOT 5
- How to used the script in only one form ? HOT 2
- searchFields not working HOT 7
- scroll not working HOT 16
- Version 1.6.12 - blur - add on tab HOT 3
- setItem function show placeholder HOT 1
- When using setItem and data-max="1", it's possible to write text after the set tag HOT 2
- option inside optgroup cannot auto-select HOT 4
- filter for bad characters HOT 4
- How to add data attribute on input? HOT 2
- Blur is broken on the modal demo HOT 4
- Pass through the title attribute for tooltips HOT 1
- Accessibility issue. HOT 4
- Missing first option when using the <select multiple> HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap5-tags.