Thread Starter
mmanna
(@mmanna)
Wow, I didn’t think of that. Thanks for the fast reply!
Thanks for the response, Leah! I can’t get this to work, though.
I successfully linked the jQuery script file to my WordPress site. The content of my .js file is the following:
jQuery(function($) {
$('.entry-content').on('click','#[tabby tab id] ',function(){
$( "#[map div id]" ).append("<iframe src='[map url]' width='780px' height='600px'></iframe>");
});
});
The div, which is of the same size as the map, remains blank. What could be the problem, any thoughts?
I have a similar problem. How exactly should the iframe be added with jQuery? Where should I use the jQuery code snippet?