title: Grails: Using jQuery for clear form not working
body: <p>I am using Grails and the first part I have is a search field.</p>
  
  <p>I am using this to create the CLEAR button, but it is not working:</p>
  
  <pre><code>$("#clear").click(function() {
      $(':input','#container')
          .not(':button, :submit, :reset, :hidden')
          .val('')
          .removeAttr('checked')
          .removeAttr('selected');
      $("#container #ScommodityList").empty();
      $("#container #SagentList").empty();
  });
  </code></pre>
  
  <p>Does anybody know what I could be doing wrong?? Maybe the :input part?? In Grails they are called g:textfield </p>
  
  <p>Something like this, but using Grails would be perfect!</p>
  
  <p><a href="http://jsfiddle.net/EPcnR/3/" rel="nofollow">http://jsfiddle.net/EPcnR/3/</a></p>
  
  <p>Any help would be greatly appreciated</p>