Call jquery function when
    content change

前端 未结 7 770
遇见更好的自我
遇见更好的自我 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

    $(document).on('DOMSubtreeModified', function (e) {
         if ($(e.target).hasClass("select2-choices")) {
              console.log("cambio");
              alert("cambio");
         }
    });
    

提交回复
热议问题