I have a script that adds "?wmode=transparent" at the end of the src of every Youtube video in a div of #fp.
Here's what I got:
The problem with this code is that it targets the first iframe, takes the source of that and adds the source of the first video + ?wmode=transparent to all the other videos.Code:var newsrc = $('#fp iframe').attr('src') + '?wmode=transparent'; $('#fp iframe').attr('src', newsrc);
How do I rewrite the code so that it executes once for each iframe it finds?
I'm really new to jQuery and havn't been able to figure this out for a week.