I would like to bind .on() to the ajax event, which means I would like it to fire whenever the ajax response was successfully received. I do not understand how I could bind .on() to such an event. Do I need to use load like this?
$(document).on('load','#elementInsertedByAjax',function(){
PS I need to use .on() as the whole page is inserted by ajax call.
jquery ajax events
ghego1
source share