jQuery: Modifying DOM Elements Based on Item ID
If you want to modify DOM elements when 'item_id' has a value of 58, you can use an if condition to check the value and then perform the desired action. Here's an example:
if (item_id == 58) {
$('#' + item_id).closest('.qcart_item').find('.qq_item_data').each(function() {
// Your code here
});
}
Replace '// Your code here' with the code you want to execute when 'item_id' is 58.
原文地址: https://www.cveoy.top/t/topic/qda9 著作权归作者所有。请勿转载和采集!