title: Get selected value for hidden tr in table using PHP,AJAX,JQUERY
body: <p>I have the code as below:</p>
  
  <pre><code>&lt;form method ="post" id="myForm"&gt;
  &lt;table&gt;
  
      &lt;tr&gt;
          &lt;td&gt;Classification socio &lt;br /&gt; professionnelle à l'embauche : &lt;/td&gt;
          &lt;td&gt;
              &lt;select name="droClassification" class="validate[required]" id="classification"&gt;
                  &lt;option value=""&gt;choisir catégorie &lt;/option&gt;
                  &lt;option value="Ouvrier"&gt;Ouvrier&lt;/option&gt;
                  &lt;option value="Employe"&gt;Employé&lt;/option&gt;
                  &lt;option value="AgentMaitris"&gt;Agent de maitrise&lt;/option&gt;
                  &lt;option value="Cadre"&gt;Cadre&lt;/option&gt;
                  &lt;option value="Autre"&gt;Autre&lt;/option&gt;
              &lt;/select&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
       &lt;?php
          if($_POST['droClassification'] == "Ouvrier" || $_POST['droClassification'] == "Employe"){
  
              echo '&lt;style type="text/css"&gt; #trHide{display:none;}&lt;/style&gt;';
          }
      ?&gt;
      &lt;tr id="trHide"&gt;
          &lt;td colspan="4"&gt;This is what I want to hide it, when I select on the Ouvrier or Employe&lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>I need:</strong>
    When I select on Ouvrier or Employee,it will be hide <code>&lt;tr id="trHide"&gt;</code> tag.</p>
  
  <p><strong>Problem:</strong>
    I used the PHP code as my code above but it dose not work.So do you have any idea for this? or which technology should I use like AJAX,JQUERY,PHP? Help me please,Thanks.</p>