请访问此页面。我想在我的网站上放置一个指向这个的链接。但是,当用户单击并转到页面时,我希望默认选中包含佣金复选框。
知道如何完成这项工作吗?
更新 - 以下是我尝试过的代码,但事件没有发生我收到错误
<iframe id="forex"src="http://www.myfxbook.com/forex-broker-spreads" width="100%" height="100%" frameborder="0"> <p>Your browser does not support iframes.</p></iframe>
<script type="text/javascript">
$(document).ready(function() { //want to trigger it from outside the iframe
$("#forex").load(function(){
$("#forex").contents().find("#includeCommission").trigger("click");
});
});
</script>