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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -