我正在一个每一个迭代的中间,想要呼出第二或第三个孩子的每一个,但不能使它的工作。
alert($(this + ' :nth-child(2)').attr('id'));
我唯一可以想到的选择是这样可怕的愚蠢:
$(this).children(':first').next().attr('id','ddParam' + newCount); $(this).children(':first').next().next().attr('id','txt' + newCount); $(this).children(':first').next().next().next().attr('id'...