nobleclem / jQuery-MultiSelect

Turn a multiselect list into a nice and easy to use list with checkboxes.
https://springstubbe.us/projects/jquery-multiselect/
MIT License
289 stars 216 forks source link

add ability to write new value if it not found in list #192

Closed pbelskiy closed 1 year ago

pbelskiy commented 2 years ago

First of all thanks for this great plugin!

Is your feature request related to a problem? Please describe. In some cases of usage your plugin I wanna write some custom value if it not found in original list, and submit it to server.

Describe the solution you'd like When no item is found I suggest to add it to list by pressing enter button.

Describe alternatives you've considered I've create some hack in your plugin, but it's incorrect, so could you add this future, please.

Additional context No

nobleclem commented 1 year ago

Yeah that is going to be a custom thing to do. You should be able to implement what you need using the various Callbacks. You might need to implement your own event listener which could be initialized within the onLoad callback.