How to add createSearchChoice to select2 widget
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2014 08:09 PM
Hello,
How to inline createSearchChoice function to select2 widget, for instance this one:
createSearchChoice:function(term, data) { if ($(data).filter(function() { return this.text.localeCompare(term)===0; }).length===0) {return {id:term, text:term};} },
Best regards
0 REPLIES 0
