Hello,

I wrote a small plugin in jquery to crop pictures. I do it like this:

[html][/html]$(document).ready(function(){
$('.imagethumb').cropImage({size:150});
});

now I'm writing a folder and image management panel, all in jquery and ajax in connection with the database. When I click on the folder, ajax opens, which downloads a database and generates html with images from class = "imagethumb", but for this generated data my plugin no longer works.

I know that there is an on () function for such things and I use it successfully, but I don't know how to use it in the case of the plugin called after loading the document.


Cytat(Sylus @ 17.07.2020, 06:57:04 ) *
Hello,

I wrote a small plugin in jquery to crop pictures. I do it like this:

[html][/html]$(document).ready(function(){
$('.imagethumb').cropImage({size:150});
});
https://trackeasy.fun/usps/ https://showbox.tools/ http://essaywriter.fun/
now I'm writing a folder and image management panel, all in jquery and ajax in connection with the database. When I click on the folder, ajax opens, which downloads a database and generates html with images from class = "imagethumb", but for this generated data my plugin no longer works.

I know that there is an on () function for such things and I use it successfully, but I don't know how to use it in the case of the plugin called after loading the document.



Thank you i got it.