Closed wietsevr closed 9 years ago
hmm. I think You can add event:
'change select': function (e)
and check in this function length of elements: $(e.target).val().length
I'll try it out, thanks for your help.
@MichalW I did add an event and check the length of elements. But I have no idea what to do next. Please help.
'change select': function (e) {
var number_selected = $(e.target).val().length;
if (number_selected >= 2) {
// what to do?
}
}
@wietsevr: @rizafahmi: I added just new option: 'values_limit'. Please look at the readme and test
Nice @MichalW . Thanks for this package!
Thanks for the code - works like a charm.
I accept multiple items at the moment, but I'd need to limit the number of items accepted to a maximum. Anyone who can help me? Thanks :)