admin管理员组文章数量:1333201
I am working on an application and i have use a property where a small change in textarea should alert the user, i tried onChange events, but that does not server the Purpose, i found onPropertyChange seems to be working fine in IE only, i had to make this application cross browser was looking something like an attribute of onpropertychange with other browsers. Looked at DomAttrModified, but that seems not working any idea, how can i do: Here is my below code:
$("#info").bind('keyup keydown keypress onDOMAttrModified propertychange', function(evt)
{ var keyCode = evt.which;
var text_area =$(this).val();
}
});
I am working on an application and i have use a property where a small change in textarea should alert the user, i tried onChange events, but that does not server the Purpose, i found onPropertyChange seems to be working fine in IE only, i had to make this application cross browser was looking something like an attribute of onpropertychange with other browsers. Looked at DomAttrModified, but that seems not working any idea, how can i do: Here is my below code:
$("#info").bind('keyup keydown keypress onDOMAttrModified propertychange', function(evt)
{ var keyCode = evt.which;
var text_area =$(this).val();
}
});
Share
Improve this question
edited Aug 18, 2013 at 8:01
Tushar Gupta - curioustushar
57.1k24 gold badges105 silver badges109 bronze badges
asked Aug 18, 2013 at 7:56
RegualRegual
3771 gold badge5 silver badges21 bronze badges
2
-
2
Don't prepend "on". Just use
DOMAttrModified
– Ian Commented Aug 18, 2013 at 7:58 -
Although I'm confused why
onchange
doesn't work for you. Maybe you're looking foroninput
? – Ian Commented Aug 18, 2013 at 7:59
1 Answer
Reset to default 3try
replace onDOMAttrModified
with DOMAttrModified
$("#info").bind('keyup keydown keypress DOMAttrModified propertychange',
本文标签: javascriptJQuery binding events with propertychange and DomAttrModifiedStack Overflow
版权声明:本文标题:javascript - JQuery binding events with propertychange and DomAttrModified - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742277442a2445459.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论