title: Jquery If statement
body: <p>I'm trying to hide and show a option based on it's class. Can anyone help me see why this isn't working?    </p>
  
  <pre><code>           $(document).ready(function(){
                  $("#product_boutique").val( &lt;? echo $rowO-&gt;product_boutique ?&gt; );
                  $("#product_category").val( '&lt;? echo $rowO-&gt;category ?&gt;' );
                  $("#product_sub_category").val( '&lt;? echo $rowO-&gt;category ?&gt;' );
                  var select = $("#product_category").val( '&lt;? echo $rowO-&gt;category; ?&gt;' ).val();
  
                  if (select == 'womenswear'){
                        $('.mens').hide();
                        $('.womens').show();
                  }
                  if (select == 'menswear'){
                        $('.mens').show();
                        $('.womens').hide();
                  }   
  
              });
  </code></pre>