title: replace a substring in javascript
body: <p>I have a string in java script</p>
  
  <pre><code>&lt;select name="random[]" class="myclass" id="x"&gt; 
       &lt;option&gt;hello&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>How can I replace value of id with some other value in javascript?</p>