Skip to content

Instantly share code, notes, and snippets.

@chrisjreber
Created June 13, 2017 16:22
Show Gist options
  • Save chrisjreber/5b80ae604da8217c04446901a9d0d9ce to your computer and use it in GitHub Desktop.
Save chrisjreber/5b80ae604da8217c04446901a9d0d9ce to your computer and use it in GitHub Desktop.
/*===============================================
= Auto play youtube video =
===============================================*/
var videosrc=$("iframe").attr("src")+"&autoplay=1";
$("iframe").attr("src",videosrc);
/*===== End of Auto play youtube video ======*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment