Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rebuilt-et-video-tabs.js
jQuery('.et_tab_button').click( function() {
var video = document.querySelector('.et_tab_video');
jQuery('.et_tab_video source').attr('src', jQuery(this).data('video'));
video.load();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment