jarstone / dselect

Dropdown select box for bootstrap 5
dselect.vercel.app
MIT License
66 stars 14 forks source link

Feature request: Callback for a select or remove event. #2

Open theRealProHacker opened 2 years ago

theRealProHacker commented 2 years ago

Hi,

as I understood, you replace the select element with a dropdown from bootstrap. The problem that I am facing is that I cannot access the values in the dropdown easily. By this, I mean with just one function call or so. I think that a callback option for any change would make this much easier. I am thinking about the multiple "select" especially, because the select can only hold one option, which I found out to be the first one.

Is it okay if I try some stuff out and make a pull request, so you can see for yourself?

Edit: Actually, I wanted to add, that I know that you are automatically triggering the change event, which is awesome, however then it is hard to get the value, if I didn't miss something obvious.