title: jQuery clear textboxes and reset to default drop down menu values
body: <p>On click want to clear all (<strong>not reset</strong>) input (clear also default textbox values). Need very short, simple code that uses as little as possible resources.</p>
  
  <p>HTML form</p>
  
  <pre><code>&lt;form id="form2" action='project_manager' method='post'&gt;
  &lt;input type='text' name='project' value="default value" &gt;
  &lt;select name='job_number'&gt;
  &lt;option value='0'&gt;&lt;/option&gt;
  &lt;option value='1'&gt;job1&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;input type="button" id="clear_all" value="Clear all" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>jQuery</p>
  
  <pre><code>$('input[id="clear_all"]').click (function () {
  $(':input').val('');
  
  });
  });
  </code></pre>
  
  <p>But this clears also value of button. Value of button must remain.</p>
  
  <p>Changed to <code>$('form :input[type=text]').val("");</code></p>
  
  <p>How to reset drop down menu value?</p>
  
  <p>Tried <code>$('form :select').val("");</code> and <code>$('form :select').selectedIndex = -1;</code>. Something incorrect...</p>