title: Javascript - custom url depending on selected option
body: <pre><code>&lt;form name="myform" action="#" method="post"&gt;
          &lt;div class="col-md-4"&gt;
              &lt;div class="col-md-4 desc"&gt;Naziv marke: &lt;/div&gt;
              &lt;div class="col-md-8"&gt;
                  &lt;select class="form-control" id="brandovi"&gt;
                      &lt;option value="AllBrands" selected&gt;Sve marke&lt;/option&gt;
                      &lt;option value="Dunlop"&gt;Dunlop&lt;/option&gt;  
                      &lt;option value="Fulda"&gt;Fulda&lt;/option&gt;    
                      &lt;option value="Goodyear"&gt;Goodyear&lt;/option&gt;  
                      &lt;option value="Sava"&gt;Sava&lt;/option&gt;          
                  &lt;/select&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="col-md-2"&gt;
              &lt;div class="btn-group"&gt;
                  &lt;input type="radio" autocomplete="off" name="season" value="Summer"&gt; &lt;img width="20" src="img/ikone/summer.png" /&gt;
                  &lt;input type="radio" autocomplete="off" name="season" value="AllSeason"&gt; &lt;img width="20" src="img/ikone/allSeason.png" /&gt;
                  &lt;input type="radio" autocomplete="off" name="season" value="Winter"&gt; &lt;img width="20" src="img/ikone/winter.png" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="col-md-4"&gt;
              &lt;div class="col-md-4 desc"&gt;Tip vozila:&lt;/div&gt;
              &lt;div class="col-md-8"&gt;
                  &lt;select class="form-control"&gt;
                      &lt;option value="AllTypes"&gt; Sve vrste &lt;/option&gt;
                      &lt;option value="fourxfour"&gt; 4x4&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="col-md-2 text-right"&gt;
              &lt;input type="submit" name="submit" value="Traži"/&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>I have this in HTML, so I need javascript code that will output custom URL depending on selected values</p>
  
  <p>Url example</p>
  
  <pre><code>http://link.com/?brandovi=sava&amp;sezona=zima&amp;vrstaVozila=4x4
  </code></pre>
  
  <p>I tried several JS codes but I could not make it.
  Please help.</p>