I know I can make DropDownListFor required in HTML page by adding required felid as below:
@Html.DropDownListFor(m => m.Site_idSite, Model.GetSiteList(Model.idCompany), new { @class = "w_300p", required = "required" })
My question is how can I make ListBoxFor required?
@Html.ListBoxFor(m => m.SelectedSites, Model.GetSiteList(Model.idCompany), new { @class = "w_250p", Size = "4" })
Any help will be appreciated. Stuck with this problem quite a longg.