How to use jquery in ASP.​NET Core
<p>I created a ASP.NET core template and wrote a jquery script. When I look at the page I see that jquery is loaded into the page, but the script doesn’t run. I looked at the ASP.NET docs page and my layout.cshtml looks the same, so are there extra steps I must take to get jquery working? 
<a href="https://i.stack.imgur.com/hWxLR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hWxLR.png" alt="enter image description here"></a>
Home page</p>

<pre><code>@{
    ViewData["Title"] = "Home Page";
}
&lt;!-- Page Content--&gt;
&lt;div class="container"&gt;
    &lt;div class="row"&gt;
        &lt;form method="post" enctype="multipart/form-data"&gt;
            &lt;input type="file" id="files" name="files" multiple /&gt;
            &lt;input type="button" id="upload" value="Upload Selected Files" /&gt;
        &lt;/form&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;script&gt;
    $(document).ready(function () {
        alert("Test"); 
    });
&lt;/script&gt;
</code></pre>

<p><strong>Solution</strong></p>

<pre><code>@section scripts
{
    &lt;script&gt;
        $(document).ready(function() {
            alert("Test");
        });
    &lt;/script&gt;
}
</code></pre>