I am using master layout of Razor MVC that have something like this
@RenderSection("scripts", required: false)
And have partival view
_partial.cshtml
That have this
@section scripts
{
@Scripts.Render("~/bundles/jquery")
}
And another partial in partial
_partial_inside_partial.cshtml
That also have
@section scripts
{
<script>
$('div').addClass('red');
</script>
}
The problem i have this code inside partial, its load at he middle of the page, and jquery is at the bottom?
<script>
tag closed? – Alinealinna$(document).ready()
– Riba