Skip to content

Instantly share code, notes, and snippets.

@Spellhammer
Created March 19, 2021 19:03
Show Gist options
  • Save Spellhammer/f79575d1f50590ebce619a2a38f8b18f to your computer and use it in GitHub Desktop.
Save Spellhammer/f79575d1f50590ebce619a2a38f8b18f to your computer and use it in GitHub Desktop.
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