Stop iframe from playing

I want to stop iframe from playing when the ‘show’ class is removed from its parent div class.

So, I added code below to script and It works fine.
('iframe').attr('src', (‘iframe’).attr(‘src’));
But, the rest of the iframe players are disappeared.

( document ).ready(function() { (’.btnwrapper a’).on(‘click’, function () {
var eq = $(this).index();

('.playerwrapper .player').removeClass('show'); (’.playerwrapper .player’).eq(eq).addClass(‘show’);
('iframe').attr('src', (‘iframe’).attr(‘src’));

read only link:

Thank you so much, in advance, for help.