title: How do I enable a button after a video ends.?
body: <p>I have a page that contains a video and a button, but i don't want the user to be able to click finish until the video ends.</p>
  
  <p>Code for the video:</p>
  
  <pre><code>&lt;video width="100%" height="480" controls&gt;
      &lt;source src="video/lesson4.mp4" type="video/mp4"&gt;
      Your browser does not support the video tag.
  &lt;/video&gt;
  </code></pre>
  
  <p>Code for the finish button:</p>
  
  <pre><code>&lt;form method="POST" action="week.php"&gt;
      &lt;div class="input-group"&gt;
          &lt;button type="submit" class="btn" id="btn" name="register_btn" disabled="disabled"&gt;&lt;h6&gt;FINISH&lt;/h6&gt;&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>