title: Change and Update parameter value when Onchange combobox triggered
body: <p>I have a problem to change url parameter when event onchange triggered in combobox.
  Here is the preview :<br/><br/>
  <img src="https://i.stack.imgur.com/yQoLo.png" alt="enter image description here">
  <br/><br/>
  My default url like this : </p>
  
  <pre><code>http://reserv_book.php?id=1 the number id is according to row (from database).
  </code></pre>
  
  <p>When i select in Cart combobox i want to add parameter cart=standard or cart=extra according to combobox value.
  So URL update like this :</p>
  
  <pre><code>http://reserv_book.php?id=1&amp;cart=standard
  </code></pre>
  
  <p>When i select in Caddy combobox i want to add parameter caddy=standard or caddy=extra according to combobox value.
  So URL update like this :</p>
  
  <pre><code>http://reserv_book.php?id=1&amp;cart=standard&amp;caddy=standard
  </code></pre>
  
  <p>Here is my function that called when onChange event in combobox triggered.</p>
  
  <pre><code>function changeValue(type, id) {
          var valCart = document.getElementById("cart").value;
          var valCaddy = document.getElementById("caddy").value;
  
          if (type == "cart") {
              //alert("Cart : "+val+" , "+id);
  
  
              $("a.book").each(function() {
                 var link = "reserv_book.php?id="+id+"&amp;caddy="+ valCaddy +"&amp;cart=";
  
                 if (valCart == "standard") {
                      $(this).attr("href", link + 'standard');
                 } else {
                      $(this).attr("href", link + 'extra');
                 }
              });
  
          } else {
              //alert("Caddy : "+val+" , "+id);
  
              $("a.book").each(function() {
                 var link = "reserv_book.php?id="+id+"&amp;cart="+ valCart +"&amp;caddy=";
  
                 if (valCaddy == "standard") {
                      $(this).attr("href", link + 'standard');
                 } else {
                      $(this).attr("href", link + 'extra');
                 }
              });
          }
      }
  </code></pre>
  
  <p>And this is html file in combobox :</p>
  
  <pre><code>&lt;table width="100%" class="ry-table-gold" cellspacing="0" cellpadding="0"&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
            &lt;th&gt;No.&lt;/th&gt;
            &lt;th&gt;Date&lt;/th&gt;
            &lt;th&gt;Time&lt;/th&gt;
            &lt;th&gt;Player(s)&lt;/th&gt;
            &lt;th&gt;Price&lt;/th&gt;
            &lt;th&gt;Caddy&lt;/th&gt;
            &lt;th&gt;Cart&lt;/th&gt;
            &lt;th&gt;&amp;nbsp;&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;1&lt;/td&gt;
          &lt;td&gt;Oct 28 2013&lt;/td&gt;
          &lt;td&gt;14:50&lt;/td&gt;
          &lt;td&gt;3&lt;/td&gt;
          &lt;td&gt;IDR 450,000.0&lt;/td&gt;
          &lt;td&gt;
              &lt;select id="caddy" onchange="changeValue('caddy',1)"&gt;
              &lt;option value="standard"&gt;Standard&lt;/option&gt;
              &lt;option value="extra"&gt;Extra&lt;/option&gt;
              &lt;/select&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;select id="cart" onchange="changeValue('cart',1)"&gt;
              &lt;option value="standard"&gt;Standard&lt;/option&gt;
              &lt;option value="extra"&gt;Extra&lt;/option&gt;
              &lt;/select&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;a href="reserv_book.php?id=1" class="ry-btnbook book"&gt;Book Now&lt;/a&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;td&gt;2&lt;/td&gt;
          &lt;td&gt;Oct 10 2013&lt;/td&gt;
          &lt;td&gt;14:00&lt;/td&gt;
          &lt;td&gt;3&lt;/td&gt;
          &lt;td&gt;IDR 700,000.0&lt;/td&gt;
          &lt;td&gt;
              &lt;select id="caddy" onchange="changeValue('caddy',2)"&gt;
                  &lt;option value="standard"&gt;Standard&lt;/option&gt;
                  &lt;option value="extra"&gt;Extra&lt;/option&gt;
              &lt;/select&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;select id="cart" onchange="changeValue('cart',2)"&gt;
                  &lt;option value="standard"&gt;Standard&lt;/option&gt;
                  &lt;option value="extra"&gt;Extra&lt;/option&gt;
              &lt;/select&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;a href="reserv_book.php?id=2" class="ry-btnbook book"&gt;Book Now&lt;/a&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Another problem is, if the data cart and caddy in first row changed. It affect to another row.</p>