title: HTML5 video & jQuery: show/hide controls on click
body: <p>I have a jQuery click function set up to play/pause an HTML5 video, and I'm wondering how I might go about also showing/hiding the controls. Thus, I would like to initially hide the controls-- i.e. when the poster graphic is showing-- and then show them when the video is clicked to play (and also to hide them again when the video is clicked to pause.)</p>
  
  <p>I have a fiddle set up <a href="http://jsfiddle.net/nickpish/tjtv272p/" rel="nofollow">here</a>.</p>
  
  <p>Thanks much for any assistance.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("video#click").click(function(){
      this.paused?this.play():this.pause();
      return false;
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#click {
     max-width: 500px;
     height: auto;
     cursor: pointer;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;video preload="auto" id="click"&gt;
      &lt;source src="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4" type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"' /&gt;
  &lt;/video&gt;</code></pre>
  </div>
  </div>
  </p>