title: How to add onClick in html option?
body: <p>What im trying to do is when the <code>&lt;option&gt;</code> is clicked the value will be displayed in the <code>&lt;input type='text'&gt;</code></p>
  
  <p>here is my code right now:</p>
  
  <pre><code>&lt;select id='months'&gt;
     &lt;option value='9' id='months9'&gt;9 Months&lt;/option&gt;
     &lt;option value='10' id='months10'&gt;10 Months&lt;/option&gt;
     &lt;option value='11' id='months11'&gt;11 Months&lt;/option&gt;
     &lt;option value='12'id='months'&gt;12 Months&lt;/option&gt;
  &lt;/select&gt;
  
  if($months == '9'){
     echo 'today +9 months';
  }
  if($months == '10'){
     echo 'today + months';
  }
  if($months == '11'){
     echo 'today +11 months';
  }
  if($months == '12'){
     echo 'today +12 months';
  }
  
  &lt;input type='text' name='signoff_date'&gt;
  </code></pre>
  
  <p>NOTE: I know this code will not work i'm just giving you idea how my program works.</p>
  
  <p>I hope you understand it. Thanks</p>