Need To Typeable dropdown listMPMithun Pradhan4yAsked Oct 27, 2021, 5:25 AM652.NET --Select-- Car Train Plain Bike Cycle
Srinivasan Ramamoorthi4y agoPosted Oct 27, 2021, 12:28 PMcheck this article for referencehttps://stackoverflow.com/questions/264640/how-can-i-create-an-editable-dropdownlist-in-html
Sachin Singh4y agoPosted Oct 27, 2021, 5:43 AMJust add an input at the side of last option, use your own css to style."text-to-add" type="text" value="New Vehicle"> class="selectpicker show-tick" asp-for="TestViewModel.ServiceTypeId"> "">--Select-- "1">Car "2">Train "3">Plain "4">Bike "5">Cycle $(document).ready(function () { $('#new-item').click(function() { $('select').append( '' + $('#text-to-add').val() + '' ); }); });
Srinivasan RamamoorthiPosted Oct 27, 2021, 12:28 PM
Sachin SinghPosted Oct 27, 2021, 5:43 AM