title: Title from Id Youtube API v3?
body: <p>I'm trying to figure out the youtube API v3, and one thing I'm trying to do is getting the title of the video if you have the video Id already, I have seen some other people doing this, but I haven't found any simple straightforward example code of how to do this.</p>
  
  <p>So I have set up a super simple <em>"starting point demo"</em>, with this code how would I make it so you type the ID of the video in the text-field and then press get title and the ytTitle div text updates with the title of the video.</p>
  
  <p><strong><a href="https://jsfiddle.net/3tggc003/1/" rel="nofollow">JSFIDDLE DEMO</a></strong></p>
  
  <p><strong>CODE (HTML):</strong></p>
  
  <pre><code>&lt;input id="textbox_id" placeholder="YT ID here" type="text" /&gt;
  &lt;button id="btnGetTitle"&gt;GetTitle&lt;/button&gt;
  &lt;div id="ytTitle"&gt;Title Name here&lt;/div&gt;
  </code></pre>
  
  <p><strong>CODE (Javascript/jQuery):</strong></p>
  
  <pre><code>  var varID = "78RUGbKkMFI"; //https://www.youtube.com/watch?v=78RUGbKkMFI
    var varApiKey = "AIzaSyDDBk8tAkod1VRRNyFZF09fgQyMpnSe5HI"; //https://console.developers.google.com
  
    $(document).ready(function () {
          $("#btnGetTitle").click(
              function () {
                  ChangeText();
              }            
          );
      });
  
  function ChangeText() {
     $('#ytTitle').text('Title');
  }
  </code></pre>