title: Clear input box on click with Jquery
body: <p>I have a simple code that I'm trying to wrok into my website to clear a textbox with a default value, when a user click on it, the default value should clear out so that the user can enter his/her value. Here is what I have but I'm not sure if its correct since its not working. I just started on JQuery</p>
  
  <pre><code>   $(document).ready(function()
    {
          $('#startDateBox').click(function()
          { 
              if(('#startDateBox')=='Beginning')
  
              {
               $('#startDateBox').val(''); 
              }
  
           })
     });​ 
  </code></pre>