我想使用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>
有什麼建議?