我需要從<a>
url更改iframe源。 http://jsfiddle.net/YkKu3/從鏈接更改iframe源href
我的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
});
你可以把一些更多的燈光,你想要什麼 –