title: Downloading jquery library to project Error:java: Illegal char <:> at index 4: http:\api.jquery.com
body: <p>I use Intellij Idea. I want to download jquery library to have access offline to it in Intellij Idea in my Spring Project. So I typed "Alt + enter" on the link </p>
  
  <pre><code> &lt;script src="https://code.jquery.com/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and chose "Download library".
  The library has dowloaded, and the problem is that after it I can't run my program, because all the time I see 
  Error:java: Illegal char &lt;:> at index 4: http:\api.jquery.com
  without any path. I have't even have something like written in my whole project.</p>
  
  <p>When I had just global link to "<a href="https://code.jquery.com/jquery-1.12.4.min.js" rel="noreferrer">https://code.jquery.com/jquery-1.12.4.min.js</a>" and had internet access all worked properly.</p>
  
  <p>I tried to download library in local file and put in header link to it actually after deleting library from intellij. But still don't working.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;script src="https://code.jquery.com/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;input type="number" id="myInput" name="myInput" onchange="countOfTryings(this)"&gt;
  
      &lt;a name="toChallenge" href="http://some_web_site.com?parameter1=4"&gt;This is link&lt;/a&gt;
      &lt;a name="toChallenge" href="http://some_web_site_other.com?parameter1=4"&gt;This is link 2&lt;/a&gt;
  
      &lt;script&gt;
          function countOfTryings(variable) {
              $('a[name="toChallenge"]').each(function () {
                  var oldUrl = $(this).attr("href"); // Get current url
                  var str = oldUrl.substring(0, oldUrl.indexOf("parameter1"));
                  var newUrl = oldUrl.replace(oldUrl, str + "parameter1=" + variable.value); // Create new url
                  $(this).attr("href", newUrl); // Set herf value
              });
          }
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want my program to change the urls of hyperlinks with name="toChallenge". To change the value of the request parameter "parameter1" to new value, what will be in input with id="myInput".</p>