JQuery jquery-1.7.1.min.js live() deprecated use on()

后端 未结 2 2067
小蘑菇
小蘑菇 2021-01-22 08:57

from jQuery website:

As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers.

with version 1.7.1 i

2条回答
  •  执念已碎
    2021-01-22 09:25

    Specific to the code submitted, as per the ramblings above;

    Replace

    $(".toBeSaved [col=ISRC] input").on('change',function() {
    

    with

     $(document).on('change','.toBeSaved [col=ISRC] input', function() {
    

提交回复
热议问题