I have this section defined in my _Layout.cshtml
_Layout.cshtml
@RenderSection(\"Scripts\", false)
I can easily use it from a view:
If you do have a legitimate need to run some js from a partial, here's how you could do it, jQuery is required:
js
partial
jQuery