title: By selecting an option from the select menu how to force another select menu to automatically load a specific option?
body: <p>By selecting an option from the select menu how to force another select menu to automatically load a specific option?</p>
  
  <p>What i mean is that i have this php code : </p>
  
  <pre><code>   &lt;select id="video_cattegory_main" name="video_cattegory_main" style="display:inline; width:95%"&gt;
              &lt;?php $query_main_menue = "SELECT video_cattegory_main FROM video_tutorials GROUP BY video_cattegory_main";
              $main_menue = mysql_query($query_main_menue, $webiceberg) or die(mysql_error());
              while ($row_main_menue = mysql_fetch_assoc($main_menue))  {  ?&gt;
              &lt;option name="video_cattegory_main" value="&lt;?php echo $row_main_menue['video_cattegory_main']?&gt;" &gt;&lt;?php echo $row_main_menue['video_cattegory_main']?&gt;&lt;/option&gt;
              &lt;?php } ?&gt;
            &lt;/select&gt;
  </code></pre>
  
  <p>What this dose it loads the values from the table into the select menu , I have another select menu just like this one but in the second one i want it to load based on the selection of the first . </p>
  
  <p>In other words what would be the best approach so that when select one option in a select menu automatically it forces a default value in another select menu </p>
  
  <p>Can this be done solely in php or will i need to add js which i have very little knowledge of </p>