title: Enable submit button with javascript
body: <p>First, i have a code that i need to know if the user has clicked on one submit button, then, i need one function to enable another submit button that is disabled by disabled="disabled".</p>
  
  <p>Here's my noob function (Needs improves, does not work).
  :</p>
  
  <pre><code>&lt;script&gt;
      function EnableSend() {
      if(document.getElementById("Submit_Facebook").click(); {
      document.getElementById("submit").disabled = false; }
      }
   &lt;/script&gt;
  </code></pre>
  
  <p>And now the code:</p>
  
  <p>1 - Disabled Submit: (Will be enabled after user click on Submit_Facebook submit button).</p>
  
  <pre><code>&lt;input id="submit" name="submit" type="submit" value="" disabled="disabled"&gt;
  </code></pre>
  
  <p>2 - Other submit that will make the disabled submit enabled.</p>
  
  <pre><code>&lt;form method="post" class="button" action="&lt;?=$PHP_SELF;?&gt;""&gt;
   &lt;input id="Submit_Facebook" name="Submit_Facebook" type="submit" value=""onclick="EnableSend()"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>3 - Php part</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['Submit_Facebook'])) {
  echo "&lt;script&gt;alert('You now can proceed to step two.');&lt;/script&gt;";
  echo '&lt;script type="text/javascript"language="javascript"&gt;window.open("#");&lt;/script&gt;'; 
  exit;
  }?&gt;
  </code></pre>
  
  <p>Well, my english is not that good, but if you guys need any detail just contact me, thanks for your attention.</p>