title: display or hide row on change of session variable
body: <p><strong>EDIT: I CHANGED THE php VALUE TO BUSINESS</strong></p>
  
  <p>I was trying to change fields using a session value which comes from another page. So, I set type hidden and stored the php value collected from session. And I want when the hidden field value is equal to "Business" the field get display otherwise it remain hidden. But it not change it show full form.</p>
  
  <pre><code>    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;meta charset=utf-8 /&gt;
          &lt;title&gt;JS Bin&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;input type="hidden" id="myInput" value="Business" onload="myFunction"&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;asp:Label ID="Label1" runat="server" Text="Category: " /&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;table id="Other" style="display: none"&gt;
                          &lt;tbody&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;
                                      &lt;input id="txtOthers" type="text" runat="server" /&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;
                                      &lt;input id="txtOthers" type="text" runat="server" /&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;
                                      &lt;input id="txtOthers" type="text" runat="server" /&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/tbody&gt;
                      &lt;/table&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>the JS:</p>
  
  <pre><code>function myFunction() {
  var x = document.getElementById("myInput").value;
  if(x.value.match === "Business"){
  document.getElementById("other").style.display = "block";
  }
  else{
  document.getElementById("other").style.display = "none";
  }
  
  }
  </code></pre>