How to Move '.qq_u_img' to the Top of '.qq_muti_img' Elements in jQuery
To add the mentioned code snippet to the top, you can use the 'prepend' method. Here's how you can modify your code:
$('.qq_muti_img').each(function() {
$(this).closest('.qq_uploader').find('.qq_u_img').prependTo($(this));
});
This will move the '.qq_u_img' element to the top of each element with the class '.qq_muti_img'.
原文地址: https://www.cveoy.top/t/topic/qk8v 著作权归作者所有。请勿转载和采集!