I use this code in my cshtml
<script src="~/lib/jquery/dist/jquery.js"></script><link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"><script src="https://code.jquery.com/jquery-1.12.4.js"></script><script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script><script type="text/javascript">$(document).ready(function () { var availableTags = ["ActionScript","AppleScript","Asp","BASIC","C","C++","Clojure","COBOL","ColdFusion","Erlang","Fortran","Groovy","Haskell","Java","JavaScript","Lisp","Perl","PHP","Python","Ruby","Scala","Scheme" ];$("#txtLanguages").autocomplete({ source: availableTags }); });</script>
and in <body> I wrote this
<div class="form-group"><label asp-for="GrandWork" class="col-md-2 control-label"></label><div class="col-md-10"><input asp-for="GrandWork" class="form-control" ID="txtLanguages" /><span asp-validation-for="GrandWork" class="text-danger" /></div></div>
It's just the same statement which indicated in JqueryUI Guide
why that script doesn't work??