title: simple javascript form validation submit doesn't work
body: <p>Why my simple javascript validation not working. I want to check if the default text is same as default value (Keyword(s)), then submit the form with empty parameter.</p>
  
  <pre><code>&lt;form method="get" id="search_form" action="http://somesampleurl.com" onsubmit="return validation();"&gt;
  &lt;input name="s_rawwords" value="Keyword(s)" id="search_field" class="search_field" type="text"&gt;
  &lt;input name="s_freeloc" value="City, State or Zip" id="search_field2" class="search_field" type="text"&gt;
  &lt;input value="" id="search_button" type="submit"&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
      function validation(){
          var search_key = document.getElementById("search_field").value
          alert(search_key);
          if(search_key =="Keyword(s)"){
              alert("step2");
              search_key = "";
          }
      }
  &lt;/script&gt;
  </code></pre>