title: JQuery script rendering using bundles in ASP.NET
body: <p>I am trying to render jquery using bundles. </p>
  
  <p>I added jquery in <code>BundleConfig.vb</code> as</p>
  
  <pre><code>bundles.Add(New ScriptBundle("~/bundles/jquery")
                      .Include("~/Scripts/jquery-{version}.js",
                               "~/Scripts/jquery-ui-{version}.js"))
  </code></pre>
  
  <p>And I added </p>
  
  <pre><code>&lt;%=Scripts.Render("~/bundles/jquery")%&gt;
  </code></pre>
  
  <p>in aspx file.</p>
  
  <p>When I look at the source code of the file I get something like</p>
  
  <pre><code>&lt;script src="/Scripts/jquery-2.0.1.js" style=""&gt;&lt;/script&gt;
  &lt;style type="text/css"&gt;&lt;/style&gt;
  &lt;script src="/Scripts/jquery-ui-1.10.3.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I am able to render all other scripts and styles without any problems.</p>
  
  <p>Other script bundles in <code>BundleConfig.vb</code></p>
  
  <pre><code>    bundles.Add(New ScriptBundle("~/bundles/jqtree").Include(
                 "~/Scripts/tree.jquery.js",
                  "~/Scripts/jquery.cookie.js",
                  "~/Scripts/jqtreeinit.js"
                 ))
      bundles.Add(New ScriptBundle("~/bundles/knockout").Include(
                  "~/Scripts/knockout-{version}.js"
                  ))
      bundles.Add(New ScriptBundle("~/bundles/searchKey").Include(
                  "~/Scripts/ViewModels/assetViewModel.js",
                  "~/Scripts/AjaxTextBoxSuggestions.js"
                  ))
  </code></pre>
  
  <p>Do you have any idea about style attribute added to the script tag and style tag between jquery and jqueryUI?</p>