title: Imported JS script doesn't worked in ASP.NET view
body: <p>In ASP.NET project trying to implement JS script work, but somehow it fails.
  I've got my script in <em>Scripts</em> folder, JQuery import in <em>_ViewImports</em> and button in my <em>View</em></p>
  
  <p>I've also tried importing JQuery in <em>View</em> itself and wrapping script function into <code>$(document).ready(...)</code>, but neither helped.</p>
  
  <p>Script functionality </p>
  
  <pre class="lang-js prettyprint-override"><code>function copyToClipboard(element) {
      var $temp = $("&lt;input&gt;");
      $("body").append($temp);
      $temp.val($(element).text()).select();
      document.execCommand("copy");
      $temp.remove();
  }
  </code></pre>
  
  <p>JQuery import in <em>_ViewImports</em></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script src="~/lib/jquery/dist/jquery.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Using that functionality</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script src="@Url.Content("~/Scripts/copyToClipboard.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;button onclick="copyToClipboard("default str")"&gt;Copy&lt;/button&gt;
  </code></pre>
  
  <p>On page button is showing normally, but it don't do anything</p>