Need user to select same value multiple times

Need user to select same value multiple times

I have below example but its not working
http://jdecuyper.github.io/blog-select2/allow-repeated-items.html#