嗨有其他方法可以缩短此代码吗?我在一个页面中有多个表单,所以我需要通过ID来定位它。缩短代码
$('#documents_valid_id .dz-remove').click(function(){
$('#documents_valid_id').removeClass('doc-upload-error');
});
$('#documents_proof_billing .dz-remove').click(function(){
$('#documents_proof_billing').removeClass('doc-upload-error');
});
$('#documents_proof_income .dz-remove').click(function(){
$('#documents_proof_income').removeClass('doc-upload-error');
});