Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8649891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:40:17+00:00 2026-06-12T13:40:17+00:00

In attempting to integrate Knockout.js with Select2 , I noticed that what seems to

  • 0

In attempting to integrate Knockout.js with Select2, I noticed that what seems to be the usual way of doing it does not seem to have tagging support.

There is a jsFiddle that illustrates the basic support, but it is not apparent how one would extend this to Select2’s tagging support.

I have reduced this to a more concise jsFiddle example that one would expect would form the basis for a solution.

I would be grateful for thoughts and suggestions on how to go about obtaining tagging support for Select2 with Knockout.js.

Note: I am not wed to Select2, though I think it is brilliant. If however there is an alternative suggestion for tagging support that works well with Knockout.js, I would be quite interested in hearing about it. That being said, a solution to the problem with Select2 would be quite interesting, I think.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:40:19+00:00Added an answer on June 12, 2026 at 1:40 pm

    The tagging feature doesn’t work with <select> elements as you noted. That’s because it allows the user to add tags that aren’t in the list. You can type anything in the field and press enter, and it’s added to the value.

    Here is a working example: http://jsfiddle.net/mbest/6XvqX/41/

    Key changes:

    1. The list of available items is passed directly to Select2 through a tags option.
    2. The value binding is used instead of selectedOptions since the latter only works with <select> elements.
    3. A computed is used to get the selected items as an array.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that I'm attempting to integrate hibernate search into. I'm using
I'm using a remote 3rd party storage solution that does not have support for
I have a helpdesk package for our company that I am attempting to integrate
I have spent the last few days attempting to integrate a Grails (version 1.3.2)
I'm attempting to integrate jqGrid into an ASP.NET MVC 4 Razor view and have
So I have been attempting to integrate captions and links into the Envato FlexSlider
I have retrieved an API from a company that we are looking to integrate
I have a build that works fine locally, however, will not build within our
I am attempting to integrate a regex that I received from a coworker (who
I'm attempting to integrate phpBB with CAS so that I can utilise the single

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.