我想使用ajax调用将网址发送到iframe,但我不确定这是否可能。通过jQuery发送网址到iframe
这是我到目前为止有:
<script>
$(document).ready(function() {
$('.clickme').click(function() {
var id = $(this).attr(id);
// Need to send the URL below to the iframe
// http://www.example.com/?list_id=id
});
});
</script>
<iframe name="get_data"></iframe>
<div class="clickme" id="3453">Click Here</div>
有什么建议?