結果 : loop through list of elements javascript