').attr('height'); var initialWidth = jQuery('').attr('width'); jQuery('.video-media iframe').css({ width: '65%' }); var width = jQuery('.video-media iframe').width(); var height = width / (initialWidth/initialHeight); jQuery('.video-media iframe').css({ height: height });

Darren Hardy September 2016