title: Some Javascript Function and Tag Not Working In Chrome,but Its Work Good In Mozilla Firefox. Help Me Out Of These?
body: <p>Here Given Below Code We Create Two DropDown.based One "Property Type" second Dropdown "Property Sub Type" Should Be Change.Its Work Ok IN Firefox But Not In Chrome.</p>
  
  <p>When I select property type reidential then Second dropdown apear only residential value in dropdown.and same as for commercial property type</p>
  
  <p>JSP CODE</p>
  
  <pre><code>&lt;div class="col-sm-12"&gt;
      &lt;div class="col-sm-6"&gt;
          &lt;div class="form-group"&gt;
               &lt;label for="proptype"&gt;Property Type&lt;/label&gt;
               &lt;form:select path="Property_type" class="form-control" id="proptype"&gt;
                    &lt;form:option value=""&gt;select Property Type&lt;/form:option&gt;
                    &lt;form:option class="ares" value="Residential"&gt;Residential&lt;/form:option&gt;
                    &lt;form:option class="cres" value="Commercial"&gt;Commercial&lt;/form:option&gt;
              &lt;/form:select&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-sm-6"&gt;
          &lt;div class="form-group"&gt;
               &lt;label for="propcat"&gt;Property Category&lt;/label&gt;
               &lt;form:select path="property_category" class="form-control" id="propcat"&gt;
                     &lt;form:option value=""&gt;select category&lt;/form:option&gt;
                    &lt;form:option value="New Project"&gt;New Project&lt;/form:option&gt;
                    &lt;form:option value="Resale"&gt;Resale&lt;/form:option&gt;
                    &lt;form:option value="Rent"&gt;Rent&lt;/form:option&gt;
                    &lt;form:option value="PG"&gt;PG&lt;/form:option&gt;
              &lt;/form:select&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="col-sm-12"&gt;
      &lt;div class="col-sm-6"  &gt;
          &lt;div class="form-group" id="testres"&gt;
               &lt;label for="propsubtype"&gt;Property Sub Type&lt;/label&gt;
               &lt;form:select path="Property_sub_type_res" class="form-control"&gt;
                     &lt;form:option value=""&gt;select&lt;/form:option&gt;
                    &lt;form:option value="Flat/Apartment"&gt;Flat/Apartment&lt;/form:option&gt;
                    &lt;form:option value="House"&gt;House&lt;/form:option&gt;
                    &lt;form:option value="Villa"&gt;Villa&lt;/form:option&gt;
                    &lt;form:option value="Farm House"&gt;Farm House&lt;/form:option&gt;
                    &lt;form:option value="Row House"&gt;Row House&lt;/form:option&gt;
                    &lt;form:option value="Penta House"&gt;Penta House&lt;/form:option&gt;
              &lt;/form:select&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="col-sm-6" &gt;
          &lt;div class="form-group" id="testcom"&gt;
              &lt;label for="propsubtype"&gt;Property Sub Type&lt;/label&gt;
              &lt;form:select path="Property_sub_type_com" class="form-control"&gt;
                    &lt;form:option value=""&gt;select&lt;/form:option&gt;
                    &lt;form:option value="Office"&gt;Office&lt;/form:option&gt;
                    &lt;form:option value="Shop/Show Room"&gt;Shop/Show Room&lt;/form:option&gt;
                    &lt;form:option value="Industrial Land"&gt;Industrial Land&lt;/form:option&gt;
                    &lt;form:option value="Warehouse"&gt;Warehouse&lt;/form:option&gt;
                    &lt;form:option value="Industrial Building"&gt;Industrial Building&lt;/form:option&gt;
                    &lt;form:option value="ndustrial Shed"&gt;Industrial Shed&lt;/form:option&gt;
              &lt;/form:select&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="col-sm-6"&gt;
          &lt;div class="form-group"&gt;
               &lt;label for="propunit"&gt;Property Unit Type&lt;/label&gt;
               &lt;form:select path="property_unit_type" class="form-control 2col active" multiple="multiple" id="propunit"&gt;
                    &lt;form:option value="1"&gt;1 BHK&lt;/form:option&gt;
                    &lt;form:option value="2"&gt;2 BHK&lt;/form:option&gt;
                    &lt;form:option value="3"&gt;3 BHK&lt;/form:option&gt;
                    &lt;form:option value="4"&gt;4 BHK&lt;/form:option&gt;
                    &lt;form:option value="4+"&gt;4+ BHK&lt;/form:option&gt;
              &lt;/form:select&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript Function</p>
  
  <pre><code>$(document).ready(function() {
  
      $("#testcom").hide();
      $("#propunit").prop( "disabled", false );
      $('.ares').click(function() {
           $("#testres").show('slow');
           $("#testcom").hide('slow');
           $("#propunit").prop( "disabled", false );
      });
      $('.cres').click(function(){
           $("#testres").hide('slow');
           $("#testcom").show('slow');
           $("#propunit").prop( "disabled", true );
      });
  });
  </code></pre>