To achieve what you want, you can modify your code as follows:

inputp.closest('.qq_uploader').find('.qq_u_img').find('.qq_muti_img').each(function() {
  // Your code here
});

This code finds the closest element with the class '.qq_uploader', then finds the descendants with the class '.qq_u_img', and finally finds the children with the class '.qq_muti_img' within those elements. The each() function allows you to iterate over each matching element and perform actions on them.

jQuery: Find and Iterate Over .qq_muti_img Elements Within Specific Parent

原文地址: https://www.cveoy.top/t/topic/qk8C 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录