title: Paste id into href
body: <p>I have a lot of streams.</p>
  
  <pre><code>&lt;a id="stream1" href="http://server/stream1/parameters"&gt;name_1&lt;/a&gt;
  &lt;a id="stream2" href="http://server/stream2/parameters"&gt;name_2&lt;/a&gt;
  ...
  &lt;a id="stream99" href="http://server/stream99/parameters"&gt;name_99&lt;/a&gt;
  </code></pre>
  
  <p>I want to hide <code>"http://server/stream99/parameters"</code></p>
  
  <p>How to do a function to paste "id" into href </p>
  
  <p>eg:</p>
  
  <pre><code>&lt;a id="stream1" href="#"&gt;name_1&lt;/a&gt;
  </code></pre>
  
  <p>using something like </p>
  
  <pre><code>function somefunction(a) {
     document.getElementById('a').innerHTML = '&lt;a href="http://server/'+id+'/parameters"&gt;';
  }
  </code></pre>
  
  <p>Javascript or jquery will make the link and paste the "id". </p>
  
  <p>Or perhaps I can somehow use a different method to hide links?</p>