Call jquery function when
    content change

前端 未结 7 717
遇见更好的自我
遇见更好的自我 2021-01-17 08:40

I try to call jQuery function when ul content is changed.

Below is my code

JS

jQuery(document).ready(function($) {

        $(\'.ProductList\         


        
7条回答
  •  被撕碎了的回忆
    2021-01-17 09:31

    The ul element doesn't have onchange event like form elements.

    I'm sure that the content of the li element is change by some function in your code. So the better way is to emit an event in that function and listen for that event;

    May be this would help: Custom events in jquery

提交回复
热议问题