title: How to programmatically set radiobutton and select option with js
body: <p>For ex. we have </p>
  
  <pre><code>&lt;select id="menu"&gt;
  &lt;option value="1"&gt;sample 1&lt;/option&gt;
  &lt;option value="2"&gt;sample 2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;input type="radio" id="parentcheck" value="1"&gt;Button 1 
  &lt;input type="radio" id="parentcheck" value="2"&gt;Button 2 
  </code></pre>
  
  <p>I want to simply "clone" user input. Let's say we want to set them to exact values and trigger their functions.</p>
  
  <hr>
  
  <p>In my case i have functions for both of them</p>
  
  <pre><code> $("#menu").change(function () {...
   $(".parentcheck").click(function () {...
  </code></pre>
  
  <p>For ex. how to select Sample 1 and Button 1 and fire their function?</p>