What I’m trying to achieve is something similar to the default look JQuery multiselect has. I’m already using select2 in my current project so I’d like to avoid using a second ‘JQuery drop-in replacement for the select tag’.
You cannot use the replacing function to realize this design. You would probably have to override the default SelectionAdapter and DropdownAdapter to achieve it. Unfortunately there isn’t much documentation about providing your own adapters. If you want to undertake this you shops probably study the default adapters in the github repo.
Good luck!