SyntaxFix
Write A Post
Hire A Developer
Questions
Should work.
Here's a working example:
http://jsfiddle.net/rhpNc/
Excerpt:
function loadIframe(iframeName, url) { var $iframe = $('#' + iframeName); if ($iframe.length) { $iframe.attr('src',url); return false; } return true; }