https://zhidao.baidu.com/question/2011675347812958428.html
------------------------------------------------------------------关于 parent和parents 的参数------------------------------------------------------------
经常用法// $(this).parent().parent();
var val = ‘aa‘;
$(this).parents(‘[name="nice-select1"]‘).find(‘input‘).val(val);
$(this).parents(‘[name="nice-select1"]‘).find(‘input‘).attr(‘data-value‘,"aaaaa");
原文地址:https://www.cnblogs.com/sunny3158/p/12104288.html
时间: 2024-10-30 22:18:59