如何将iframe textboxid转换为文本更改事件。 [英] How to get iframe textboxid to text changed event.
本文介绍了如何将iframe textboxid转换为文本更改事件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
How to get iframe textboxid to text changed event.
我有iframe,我需要将jquery函数写入keyup事件
如何通过我的申请获得iframe html cotroles
我尝试过的事情:
< script type =text / javascript>
var iframes = parent.document.getElementsByTagName(iframe);
document.write (iframes [0] .getAttribute(id));
< / script>
I have iframe in that i need to write jquery function to keyup event
how to get iframe html cotroles through my application
What I have tried:
<script type="text/javascript">
var iframes= parent.document.getElementsByTagName("iframe");
document.write(iframes[0].getAttribute("id"));
</script>
推荐答案
试试这个
try this
( iframe)。contents()。find( #txtBoxIdInsideIframe).on(' keyup', function (event){alert( this .value)});
("iframe").contents().find("#txtBoxIdInsideIframe").on('keyup', function (event) { alert(this.value) });
这篇关于如何将iframe textboxid转换为文本更改事件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文