title: JQuery get formaction and formmethod
body: <p>I have the a like this one</p>
  
  <pre><code>&lt;form id="popisgolubova_form"&gt;
      &lt;input name="pregledaj" type="button" formaction="uredigoluba.php" formmethod="post" formtarget="_self" value="pregledaj" class="button" onclick="popisgolubova_radiobutton(this)"&gt;
      &lt;input name="rodovnik" type="button" formaction="rodovnik.php" formmethod="post" formtarget="_blank" value="rodovnik" class="button" onclick="popisgolubova_radiobutton()"&gt;
      &lt;input name="podaci" type="button" value="poodaci" formaction="podaciogolubu.php" formmethod="post" formtarget="_blank" class="button" onclick="popisgolubova_radiobutton()"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and javascript </p>
  
  <pre><code>function popisgolubova_radiobutton(element)
  {
      alert($(element).find("[formaction]").val());
      var popisgolubova_radiobutton=$("input[name=RadioGroup1]").is(":checked");
      if(popisgolubova_radiobutton==false)
      {
          alert("nop");
      }
      else
      {
          $("form#popisgolubova_form").submit();
      }   
  }
  </code></pre>
  
  <p>First I'm checking if any checkbox is checked or not and if it is the I can submit the form. But the problem is formaction, formmethod and formtarget. how to get them and submit them</p>