Include direct in input select - MVC

0

I have this select field, where I load the database data:

<label asp-for="CategoriaID" class="col-md-2 control-label"></label>
<div class="col-md-6">
    <select asp-for="CategoriaID" asp-items="@Model.CountryList" class="form-control"></select>
    <span asp-validation-for="CategoriaID" class="text-danger"></span>
</div>

But the need arose for the user to be able to include direct in this field, would it be possible? Because when checking on select, there might not be a category, so it could type, and would include in the database.

    
asked by anonymous 17.09.2018 / 15:08

0 answers