Skip to content

Instantly share code, notes, and snippets.

@Spellhammer
Created March 19, 2021 19:03
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
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