I had a question about dynamically creating a YouTube iframe src, and luckily I received a 100% working jQuery solution on Stack Overflow. You can check out the answer here.
However, I encountered an issue where even if the class="youtubeimg"
is not present, the iframe still appears. I am unsure how to write a query that will hide the iframe with the class class="youtubeiframe"
if the class="youtubeimg"
is not found on the page. Can anyone help me figure this out?