This was a great lesson!!! This is exactly what I needed to learn. I did have a hard time following you on the AJAX part (around 18 minutes in ). I struggled to see the bottom of the code where all the closing parenthesis goes. I was able to figure it out on my own. This worked for me: NOTE I MODIFIED MY CODE YOU USE Countryid instead of CountryCode!!!! @section Scripts { @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} <script type="text/javascript"> $(document).ready(function() { $('#lstCountry').change(function() { var selectedCountry = $('#lstCountry').val(); var citySelect = $('#lstCity'); citySelect.empty(); if (selectedCountry != null && selectedCountry != '') { $.getJSON('@Url.Action("GetCities")', { Countryid: selectedCountry }, function(cities) { if (cities != null && !jQuery.isEmptyObject(cities)) { citySelect.append($('<option/>', {value: null, text: "Selected City----"})); $.each(cities, function(index, city) { citySelect.append($('<option/>', { value: city.value,text: city.text})); }); }; ///goes with if (cities) });///goes with .getJSON }; //goes with if (selectedCountry) });// goes with changed function });//goes with if document ready </script> }
Thank you very much sir, for creating this kind of amazing Tutorial. finally found exact tutorial that is am looking for.
Amazing the video explaining need more videos 👌👌👌👌
Thank you very much for your great video. Feeling relaxed with this solution. :-)
Thanks very much! Great one!
thank you very much
Hi? Please is posibble if you have the Repository or code? Have error and follow every steps :(
Great Video And Explanation!👏
Thank a lot
Really good tutorial and video. Have entered the code but cannot get the cities to display. Would welcome some suggestions as to where to check please Aniz. Thank you
Thank you very much for this great tutorial. you did great. but I wish you could put source code as well to make this perfect.
Hi, please i want know if you have the repository for this tutorial thanks
Excellent , Can we get code of this project ?
thankyo very helpful, but can you give a tutorial to edit the column sir
Awesome video, thank you very much! How can someone who is new to JavaScript/jQuery learn how to perform what you used with this tutorial along with your other tutorials using JS and jQuery with .Net Core.
This video very useful but i need without entity framework. ..pls help me
lIKE
can i get code of this
Please show edit action
@edsonferraz1