Home > Web Front-end > JS Tutorial > body text

Binding method of onpropertychange event under jquery_javascript skills

WBOY
Release: 2016-05-16 18:21:59
Original
1901 people have browsed it

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());
});
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!