Hello, I am using select2 for first time and i am newbie to javascript and jquery being a backend engineer. I am trying to implement a multi-tag dynamic option creation. For example, if i want to enter a tag like “new” after typing on textarea it should be able to show “#new” by automatically adding “#” before the text…and the text shown in tag inside the text area should all be start with #.
But in my case i can’t able to add # in text appearing on tags… i tried custamizing createTag call back but it didn’t work…
In the second figure i also want “#urgent” rather than only “urgent”. Here, rest of the tags like New, classified are coming directly from backend with prefix # . I really need help