<input id="xx" name="xxList[" + index + "].xx"
value=" baby.xx" class=\"easyui-textbox ulscNt\" style="width:200px;"
data-options= "events:{blur:xxxx} "/>
function xxxx(val){
console.log(val.handleObj.data.target.id)
//失去焦点时value的val
var xx =val.handleObj.data.target.value;
//失去焦点动态生成的input的id
var $currentInput = $('#' + val.handleObj.data.target.id)
var $nextElement = $currentInput.next();
if ($nextElement.length) {
// 获取下一个同级元素的 name 和 id
var nextElementName = $nextElement.attr('name');
var nextElementId = $nextElement.attr('id');
}
}
总结: 远离easyui