How to add accessible name ( aria-label ) in @DropDownListFor in razor?
OneWorld
0
Reputation points
I have filter dropdown and trying to add comply with 508 compliance. I used aria_label, aria-label and aria_labelledby but unable to see accessible name for the DropDownListFor. I see No ARIA attributes under ARIA Attributes on Chrome Browse tool. How can I add accessible name for DropDownListFor (see snippet below) ?
<div class="col-md-3">
@Html.LabelFor(model => model.AccountID) <span style="color: red;">*</span>
@Html.DropDownListFor(m => m.AccountID, this.ViewBag.AccountList SelectList, new { id = "AccountList", multiple = "true" , @class = "selectSearchAccount show-tick form-control", aria_Label: "Select Account"})