title: Jquery: Clear Specific form field on checkbox click
body: <p>I am trying to clear only specific ID input field on my checkbox click. I am switching two fieldset on checkbox click and I want to clear specific ID fields from click on checkbox from all fieldset.</p>
  
  <p>I got this script but its clearing everything from my form and that's what not I am looking but only specific ID fields.</p>
  
  <pre><code>function clear_form_elements(ele) {
  
      $(ele).find(':input').each(function() {
          switch(this.type) {
              case 'text':
              case 'textarea':
                  $(this).val('');
                  break;              
                  this.checked = false;
          }
      });
  
  }
  </code></pre>