title: Auto-play an HTML5 video on Dom Load using jQuery
body: <p>I'm trying to play a video as soon as the dom has loaded using jQuery. This is my code:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;video id="video" width="420"&gt;
    &lt;source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4"&gt;
    &lt;source src="http://www.w3schools.com/html/mov_bbb.ogg" type="video/ogg"&gt;
    &lt;p&gt;Your browser does not support HTML5 video.&lt;/p&gt;
  &lt;/video&gt;
  </code></pre>
  
  
  
  
  
  <p><strong>JS (script.js)</strong></p>
  
  <pre><code>$(document).ready(function() {
    $(#video).play();
  });
  </code></pre>
  
  <p>When you dom loads the video does not play, where am I going wrong? Thanks in advance.</p>