Does live jquery not support it?

藏色散人
Release: 2022-12-30 11:11:29
Original
2076 people have browsed it

jquery does not support live; because the live method is no longer recommended in jquery1.7, and the live method has been deleted in jquery1.9, and it is recommended to use the on method in future codes. substitute.

Does live jquery not support it?

The operating environment of this tutorial: windows7 system, jquery1.7&&jquery1.9 version, Dell G3 computer.

Recommended:jQuery video tutorial

Is the live() method not supported by jquery?

According to the official description of jQuery, the live method is no longer recommended in 1.7, and this method was deleted in 1.9; it is recommended to use the on method instead in future codes.

Previous live methods such as:

$("#con_imgs").live('change',function(){ v = $(this).val(); $("input[name='contentimg']").val(v); });
Copy after login

After jquery1.10, on can be used instead of live

$("#con_imgs").on('change',function(){ v = $(this).val(); $("input[name='contentimg']").val(v); });
Copy after login

The above is the detailed content of Does live jquery not support it?. For more information, please follow other related articles on the PHP Chinese website!

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
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!