title: onClick function isn't working
body: <p>I have a drop down menu, I want to show a div having another drop down menu when I select an option in first drop down. </p>
  
  <p>For this, I have used <code>onClick</code> function on every option tag. Every option has a different div. the problem is; It isn't showing me the div when I select an option. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;select name="first"&gt;
  
    &lt;option selected; value="" disabled="disabled"&gt;Select an Option&lt;/option&gt; 
  
    &lt;option value="all"&gt;Select All&lt;/option&gt;   
    &lt;option value="Sno"&gt;Sno&lt;/option&gt;
    &lt;option value="name" onclick="showMe('namediv',this)" onclick="ckChnage(this)"&gt;Name&lt;/option&gt;
    &lt;option value="course" onclick="showMe('coursediv',this)" &gt;Mauza&lt;/option&gt;
    &lt;/select&gt;
    &lt;div id="namediv" style="display: none";&gt;
      &lt;select name="firstres" id="firstres"&gt;&lt;option style="display:none;" selected; value=""&gt;---Select an option---&lt;/option&gt;
  &lt;?php 
     $sql="SELECT * FROM table ";     
     $result = mysql_query($sql);
  
     while ($row = mysql_fetch_array($result)) 
     {
        echo "&lt;option  value=' " . $row['Sno'] ."'&gt;" . $row['name'] ."&lt;/option&gt;";
     }
  ?&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>