Issue
I have this dropdown list:
@Html.DropDownListFor(m => m.SelectCountryId, Model.Countries, @Translator.Translate("PLEASE_SELECT"), new { id = "CountryID", @class = "form-control", ng_click = "LoadRegions();", @required = "required" })
How can I pass value m=>m.SelectCountryId
to
ng_click = "LoadRegions(SelectCountryId)"
?
Solution
I figured it out... just put:
ng_model = "countryId"
And then:
ng_click = "LoadRegions(countryId)"
Answered By - None
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.