.live() vs .on() method
问题 I'm working on a project, in which when I keep pressing on the min/plus button without hovering off the picture with the .live() method, the function works. In the case of .on() method the function does not work. How can I fix this issue, so it works for .on() method as well? Here is an example of what I’m referring too (I fixed the error in this example, but I was using the .on method wrong). 回答1: You're not using it correctly. The replacement for .live() is $(document).on() with the event