Multiselect JQuery Plugin for Bootstrap 5
dashboardcode.BsMultiSelect("#myElement");
$("#myElement").bsMultiSelect(); // jquery
There all fields have required attribte so you can analize how BS4 .was-validated highlights HTML5 :valid and :invalid statuses of them