title: jquery submit onclick
body: <p>how do i get an input type="submit" onclick event to fire the commitfunds.valdiate? i can't use a class or id. it must be an onclick event.</p>
  
  <p>here's the code:</p>
  
  <pre><code>&lt;?
  foreach ($db-&gt;row AS $val){
  $("#commitfunds&lt;?=$val['id']?&gt;").validate({
  submitHandler: function(form){
      $.post('/pages/aditorials/add_to_cart.php',
  $("#commitfunds&lt;?=$val['id']?&gt;").serialize(), function(data) {
          $('#wb_fundsresults&lt;?=$val['id']?&gt;').html(data);
      });
  }
  });
  
  
  &lt;form&gt;
  &lt;input type="text" name="commit_funds"&gt;
  &lt;input type="submit" onclick="$(#commitfunds).validate()&lt;?=$val['id']?&gt;;return false;"&gt;
  &lt;/form&gt;
  &lt;div id="#wb_fundsresults&lt;?=$val['id']?&gt;"&gt;&lt;/div&gt;
  
  ?&gt;
  </code></pre>
  
  <p>thanks</p>