title: submit nameless form with jquery anchor
body: <p>I am trying to use a link to submit a form, the kicker is I do not know the form name.  I can not seem to navigate to my form object.  </p>
  
  <pre><code>$('a#deleteRecord').click(function(){
  var $target = $(this).parent().next('form');
  $target.submit();
  }); 
  </code></pre>
  
  <p>The from is.</p>
  
  <pre><code>&lt;form method="post" action=" &lt;?php echo $_SERVER['PHP_SELF'] ?&gt;" &gt;
  &lt;input type="hidden" name="action" value="delete"/&gt;
  &lt;input type="hidden" name="record" value="1"/&gt;
  &lt;a id="deleteRecord" class="btn btn-danger" href="#" &gt;&lt;i class="fa fa-trash-o"&gt;&lt;/i&gt;&lt;/a&gt; 
  </code></pre>
  
  <p>Because I am creating the form from a database it is not practical to name the form.  Can someone please help me with this code, or suggest a better solution.  Thank you</p>