play iframe video onclick a link javascript
<iframe id="video1" width="450" height="280" src="http://www.youtube.com/embed/TJ2X4dFhAC0?enablejsapi" frameborder="0" allowtransparency="true" allowfullscreen></iframe>
<a href="#" id="playvideo">Play button</a>
<script>
$("#playvideo").click(function(){
$("#video1")[0].src += "?autoplay=1";
});
</script>
Also in JavaScript:
- how to create dynamic json?
- kendo dropdownlist value jquery
- mysql remove quote on json extract
- json table example
- node list files in directory
- change color by java scribt
- DATE UTC END OF MONTH
- uninstall node package
- css vw not working on mobile
- code mirros apply to all textareas
- js queryselector radio checked
- how to wait for a function to finish in javascript
- find method javascript
- how to get the value of textarea in react
- mongodb delete user
- clear all fields in form javascript
- add 2 for hours in date timestamp js
- how to install node js in ubuntu
- Setting “checked” for a checkbox with jQuery
- brain.js cdn
- javascript check alpha and space only
- function to create an element javascript
- javascript play audio
- lodash merge