I've added support for searching through title attributes, as titles for tooltip are so useful in multiselect. Perhaps somebody can crease a commit for similar or a better solution.
var title = $(element).attr("title").length > 0 ? $(element).attr("title") : "";
else if ((this.options.filterBehavior === 'title')) {
filterCandidate = title;
}
else if (this.options.filterBehavior === 'all') {
filterCandidate = text + '\n' + value + '\n' + title;
}
filterBehavior: 'title' for searching only title attribute or ideally filterBehavior: 'all' to search through text + value + titles.
I've added support for searching through title attributes, as titles for tooltip are so useful in multiselect. Perhaps somebody can crease a commit for similar or a better solution.
var title = $(element).attr("title").length > 0 ? $(element).attr("title") : "";
filterBehavior: 'title'
for searching only title attribute or ideallyfilterBehavior: 'all'
to search through text + value + titles.https://github.com/davidstutz/bootstrap-multiselect/pull/256 https://github.com/davidstutz/bootstrap-multiselect/pull/1007