title: how to update (append to it) an href based on dropdown selection?
body: <p>How can append to an href link a value based on a dropdown selection?</p>
  
  <p>Example :</p>
  
  <pre><code>&lt;option value="100" selected="selected"&gt;MyList&lt;/option&gt;
  </code></pre>
  
  <p>And a hyperlink like:</p>
  
  <pre><code>&lt;a href="www.mysite.com/insert/place_where_insert_the_selected_value"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>So the link will be :</p>
  
  <pre><code>&lt;a href="www.mysite.com/insert/100"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Thanks for your support</p>
  
  <p>I tried </p>
  
  <pre><code>$('#IdMenuToEdit').change(function() {
  
      var id = $( "#IdMenuToEdit option:selected" ).val();
      var href = $('a.with-tip[name="DeleteMenu"]').attr("href");
  
      $('a.with-tip[name="DeleteMenu"]').attr('href',href+"/"+id);
  
  
  
  });
  </code></pre>
  
  <p>it works but not very elegant</p>