JQuery has a .load () function
it is triggered by the ready () event, and elements loaded with ajax are no longer covered (
there is a way out
$(document).on('название события','элемент', function(){ //здесь код }); but there you can insert click , submit , etc ... all except load . how to solve a problem? I found a plugin for jQuery, which gives the function the code inside which is triggered when the item is loaded, but again with onDomReady. example:
$('img').bindImageLoad(function(){ alert('загрузилось!'); }); so what it is: is it possible to make a construction
$(document).on($('img').bindImageLoad(function(){ alert('загрузилось!'); }); }); I will be glad to accept all solutions or suggestions.