title: JavaScript - Find and replace word in array
body: <p>How would I find a word (in this case a placeholder, e.g <code>_ORGAN_</code>) in an array and replace it with an element's value?</p>
  
  <pre><code>sql = new Array();
  
  $('#system').change(function(){
      filter = " topography_index = _ORGAN_";     
      sql.push(filter);
  });
  </code></pre>
  
  <p>In this case I would want to replace <code>_ORGAN_</code> with <code>$('#organ_menu').val();</code></p>