I'm trying to make the following work and need some help please.
Bootstrap 4.5.3 select group. I saw a robot voice video on YouTube and it successfully showed the multiselect group working "with" a small description of the item under it. Like small/muted tag. date-description="something" used in achieving that function. My list is single select only with search function. After lot of searching I used SelectPicker to make it work. Long story short, Have a Codeply fiddle to show you where I have gotten so far.
Select Group with search to populate readonly box next to it.
I have the full list of cities working like a charm. Readonly box set. data-description tag is not working, maybe its not supported anymore? I tried to look up but nothing. Because data-description is not working or supported (whichever is the case) I made a readonly box to show lets say if city of Bath is selected the region its in automatically shown in region field stating South West. I have only made list of cities of England so far. Got stuck on this and didn't finish Scotland & Wales. Been trying to search for a solution.
Also if SelectPicker is the best option to go with over boot-select.
Thank you.
Here is the code snippet/code. I found a seven year old question on here and I tried to implement it to my question. It worked. I changed jQuery version and Bootstrap version to 4.5.3 and it still works (not complaining just surprised to be honest).
I don't know if this merits as answer or not to be honest but it's a solution apart from readonly bit of my original question. Selection of City changes the Region. Only thing is that if possible to have an input-group showing the region rather then drop down menu. Input-group can be made readonly and they are dark grey and dim and sort of serves better.
Also if this code which is seven year old form this question needs an upgrading?
Your input is appreciated. Have a nice weekend all.