注:一定要选中生成的区域,里面的元素!具体到每个div!
$("#ecmids").delegate("input[name='ecm[]']","keypress",function(e){
if(e.which==13){
var allinput=$("#form1 input:text");
var ines=allinput.index(this);
allinput[ines+1].focus();
}
});
注:一定要选中生成的区域,里面的元素!具体到每个div!
$("#ecmids").delegate("input[name='ecm[]']","keypress",function(e){