Closed udaraz closed 6 years ago
I have fixed it by replacing these lines
$container.addClass('flagstrap')
.append(buildHtmlSelect)
.before(buildDropDownButton)
.after(buildDropDownButtonItemList);
// Hide the actual HTML select
$('select[id^=flagstrap-] option[value=""]').attr("selected","selected");
$(htmlSelect).addClass('hidden-select');
.hidden-select{
border: 0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}
I tried to validate the select input with jquery validation plugin, but I can't validate it.