I try to call jQuery function when ul content is changed.
Below is my code
JS
jQuery(document).ready(function($) {
$(\'.ProductList\
You can use setInterval(funcName, 1800)
Check List each 1/2 second if ProductList is changed
Example jsfiddle
HTML
<ul class='ProductList List Clear'>
<li></li>
<li></li>
<li></li>
</ul>
JS
function handleProductList(){
if(jQuery('ul.ProductList > *').size() !=="undefined"){
var ProductListNum = jQuery('ul.ProductList > *').size();
console.log(ProductListNum);
}
}
/* Check List each 1/2 second */
setInterval("handleProductList();", 1800);