title: Jquery append to (dynamic by id)
body: <p>Lets say i have function with id paremeter and two select box</p>
  
  <pre><code>&lt;select id="one" onchange="Fill(2)"&gt;&lt;/select&gt;
  &lt;select id="two" onchange="Fill(3)"&gt;&lt;/select&gt;
  &lt;select id="three"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>My function</p>
  
  <pre><code>function Fill(id){  
  //some manupulation
  $('&lt;option/&gt;').val(substr[0]).html(substr[1]).appendTo('#two');
  }
  </code></pre>
  
  <p>But instead of doing many </p>
  
  <pre><code>if(id==2) {$('&lt;option/&gt;').val(substr[0]).html(substr[1]).appendTo('#two');}
  if(id==3) {$('&lt;option/&gt;').val(substr[0]).html(substr[1]).appendTo('#three');}
  </code></pre>
  
  <p>i want something like</p>
  
  <pre><code>$('&lt;option/&gt;').val(substr[0]).html(substr[1]).appendTo(DYNAMIC);
  </code></pre>