Closed nowlights closed 7 months ago
So, after create component:
var select = new SlimSelect({ select: '#selectElement' })
How can i get value from that component, is like that?:
let select = document.getElementById('selectElement').value
???
or also to select a value.
I need get value from other JS function, so I cant usenew SlimSelect()`, right?
t use
https://codepen.io/brianvoe/pen/MWxVgbV
So, after create component:
var select = new SlimSelect({ select: '#selectElement' })
How can i get value from that component, is like that?:
let select = document.getElementById('selectElement').value
???
or also to select a value.
I need get value from other JS function, so I can
t use
new SlimSelect()`, right?