title: Custom Search and Using Jquery to Hide Fields
body: <p>I'm trying to hide a field with Jquery on my search form, so that if its a commercial property, there is no 'number of bedrooms' field. </p>
  
  <pre><code>jQuery(function ($) {
      $(window).load(function() {
          $("input:radio#comms").click(function() {
              $("p.bedrooms").hide();
          });
          $("input:radio#sale").click(function() {
              $("p.bedrooms").show();
          });
  
          $("input:radio#rent").click(function() {
              $("p.bedrooms").show();
          });
      });
  });
  </code></pre>
  
  <p>I'm doing this in Wordpress, and the above code seems to work, but my question is - if you hide a field the URL changes to bedrooms=1&amp;location=blackpool  - it defaults to bedrooms = 1. I was wondering if there is a way in a form to have a null value, and if its hidden, don't search on that field at all?</p>