javascript - how to get content change event of ul in jquery -
hi have ul , ul populated through ajax request. want trigger functiont whenever content placed or changed in ul. ul this
<ul class="prodlisting" id="prodlisting"></ul> i have tried .bind() function contentchange this
$(".prodlisting").bind('contentchange', function() { alert("called"); show_socialshare(); }); and tried
$(".prodlisting").change(function(){ alert("called"); show_socialshare(); }); but both not working. can body tell me how can fire function on event
you use:
$(document).bind('ajaxcomplete', function(){ alert("called"); show_socialshare(); }); this watch document ajax calls , run once it's complete.
Comments
Post a Comment