Home  >  Article  >  Web Front-end  >  Binding method of onpropertychange event under jquery_javascript skills

Binding method of onpropertychange event under jquery_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:21:591902browse

I made a form today. When a row is required to be entered, the value is automatically calculated, and the column of the calculated value must be automatically totaled.
The onchange event was used at first, but when inputting, the column calculated and filled in with Javascript did not respond to the onchange event.
Googled it and found the onpropertychange event. You can also respond by setting the value with JS.
When using it in Jquery, you must use bind.

Copy code The code is as follows:

$("#textboxID").bind("propertychange ", function() {
alert($(this).val());
});
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn