My pre-existing website has select-2 combo boxes for drop-down lists and I also have a Bootstrap Calendar widget. These work great, but aren't accessible to people who may have disabilities. I am attempting to add screen reader functionality so that the website and these widgets may be useful for everyone.
I have done extensive research into trying to locate a solution, have added aria-label code through the inspector and have looked at various examples of drop-down lists and calendar widgets at various sites. I would like to include some code of my various pages and screenshots of my inspector in case those provide useful information. Please let me know if any additional information is required/wanted. Thank you in advance for taking the time to assist me.
CSHTML page
<div>
@Html.CustomEditorFor(model => model.HouseDetails.HouseTypeID, CachedTableTypes.CUSTOM_HouseTypes)
</div>
<div>
@Html.CustomEditorFor(model => model.DateStart)
</div>
Extension.cs page
public static MvcHtmlString CustomEditorFor<TModel, TValue>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TValue>> expression, CachedTableTypes cacheTableName, object htmlAttributes = null, bool excludeLabel = false, string appendedText = null)
{
var selectedValue = GetValue(htmlHelper, expression);
string editor = SelectExtensions.DropDownListFor(htmlHelper, expression, WebHelper.GetSelectListFromCache(cacheTableName, (string)htmlHelper.ViewData["CurrentCulture"], selectedValue)).ToString();
return htmlHelper.InputWrapper(editor, expression, htmlAttributes, excludeLabel, appendedText);
}