I try to call jQuery function when ul content is changed.
Below is my code
JS
jQuery(document).ready(function($) { $(\'.ProductList\
$(document).on('DOMSubtreeModified', function (e) { if ($(e.target).hasClass("select2-choices")) { console.log("cambio"); alert("cambio"); } });