Results 1 to 18 of 18
Jan 12, 2012, 16:48 #1
- Join Date
- May 2011
- 0 Post(s)
- 0 Thread(s)
Changing and loading an iframe 'src' attribute with jQuery
I'm very new to jQuery and quite rusty with my web design in general. I have a page on my site with 5 buttons alongside an iframe which is embedded from Youtube showing a video. All I want is for each of the buttons to load a different video from Youtube into the iframe without simply reloading the whole page. I've searched and seen some examples of jQuery interaction with iframes, but all too complex for me to fully follow. Could someone please provide a simple example of what I need to do? I just need jQueary to change the src value and reload the iframe when the user clicks on one of the buttons.
Any help would be greatly appreciated.