【发布时间】:2013-08-04 23:14:47
【问题描述】:
我需要从 <a> url 更改 iframe 源。 http://jsfiddle.net/YkKu3/
我的 HTML:
<a class='gotothis' href='http://puu.sh/666.png'>this Image</a>
<button type="button">Click Me!</button>
<iframe id="frameimg" src="" width="300" height="300">
</iframe>
$('button').click( function(event) {
var clicked = $(this);
$("#frameimg").attr("src", " .gotothis image is here, help '); // Here the problem
});
【问题讨论】:
-
你能更清楚地说明你想要什么
标签: javascript jquery