次のコードがあります。
var tabla_szam = 1;
var etk_szam = 1;
$(".etrend_ossze, .tabla_sel").each(function () {
if (etk_szam == 5) {
tabla_szam++;
etk_szam = 1;
}
$((this).find(":first-child")).attr("id", "tabla_" + tabla_szam + "_" + etk_szam); //i want to reach the actual .etrend_ossze and .tabla_sel
$((this).find(":second-child")).attr("id", "tabla_sel" + tabla_szam + "_" + etk_szam);
etk_szam++;
});
コンソールに次のエラーが表示されます: TypeError: this.find is not a function. $this を 1 番目と 2 番目の要素として、実際の .etrend_ossze と実際の .tabla_sel に到達したいと考えています。