title: How to pass selected value in dropdown and append in site_url?
body: <p>How do you get the selected value in dropdown and append it into the site_url? I cant figure out how to do this. Please point me in the right diretion. Thank you.</p>
  
  <pre><code>&lt;form name="filterByDate" method="post"&gt;
  &lt;h3&gt;Filter Suggestion&lt;/h3&gt;&amp;nbsp;
      &lt;select name="year"&gt;
          &lt;option value="2013"&gt;2013&lt;/option&gt;
          &lt;option value="2014"&gt;2014&lt;/option&gt;&lt;/select&gt;
  
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo site_url("suggestion/filter/1/". HOW TO APPEND SELECTED VALUE HERE ."); ?&gt;"&gt;Jan&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="&lt;?php echo site_url("suggestion/filter/2"); ?&gt;"&gt;Feb&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I edited the accepted answer below: here is the edited portion:</p>
  
  <pre><code> var linksContainer=document.getElementById("linksContainer");
   linksContainer.innerHTML="&lt;li&gt;&lt;a href=\"javascript:window.location('&lt;?php echo site_url(); ?&gt;/suggestion/filter/1/"+selval+"');\"&gt;January&lt;/a&gt;
  </code></pre>