title: create a dynamic link with html select option value
body: <p>I want to create a dynamic link, with the value selected from html . following is a sample code so far i could do.    </p>
  
  <pre><code>&lt;select name="sequence" id="sequence" onChange="document.getElementById('selectedValue').innerHTML = this.value;"&gt;
      &lt;option&gt;file1&lt;/option&gt;
      &lt;option&gt;file2&lt;/option&gt;
      &lt;option&gt;file3&lt;/option&gt;
  
      &lt;/select&gt;
  
      &lt;a href="data/file1"&gt;&lt;span id="selectedValue"&gt;&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>How to create this link dynamically with selected option.</p>