How can I make this Youtube iframe responsive with jQuery/JS

How can I make this Youtube iframe responsive with jQuery/JS

Hi,

Looking for a solution to make a Youtube video iframe responsive I found this page:


Now I'm trying for hours to apply it on my code example here:


but it's not working and I don't understand why it's not.

Could you please help me with this? I'm not looking for a CSS solution. I'm looking for a jQuery/JS solution.

Thanks

    • Topic Participants

    • kayut