title: how to use a variable in form action to send an email
body: <p>i have stored email_id from first form using jQuery.But how can i use it second form's <code>action:mailto:</code>? </p>
  
  <pre><code>&lt;form id="sForm" action="mailto:abc@gmail.com" method="post" enctype="text/plain"&gt;
      &lt;label for="name"&gt;Name *&lt;/label&gt;
      &lt;input type="text" name="name" style="width: 100%;"&gt;&lt;br&gt;
      &lt;label for="email"&gt;Email Address *&lt;/label&gt;
      &lt;input type="text" name="email" id="email" style="width: 100%;"&gt;&lt;br&gt;
      &lt;input type="submit" value="Send" &gt;
      &lt;input type="reset" value="Reset"&gt;
   &lt;/form&gt;
  
  &lt;script&gt;
  $(document).ready(function(e){
      $('#sForm').on('submit',function(){ 
          var email_var = document.getElementById('email').value;
      });
  });
  &lt;/script&gt;
  
  &lt;form id="pForm" action="mailto:???" method="post" enctype="text/plain"&gt;
      ....
  &lt;/form&gt;
  </code></pre>