問題は、 フィルタ
の使用です。
var aaaaaaa = control.filter(":nth-child(5)");
find
を使用し、正しいインデックス(< code> nth-child は1-indexedです):
var aaaaaaa = control.find(":nth-child(4)");
filter
looks at the top-level elements within your jQuery object. In your case, there is only one (the tr
), so that won't work. find
looks at descendants.