Change properties of dynamic lables

I want to adress several labels:
On my form there are labels called lbl1 … lbl5
I want to change the text attribut or textcontent.

 For i = 1 To 5
    w = Int(Rnd*6)+1
    $("#lbl" & i).text = w
  Next i

This does not work - why?

This code looks correct - I tried it in the Google Console and it changed the text of the label.

Does this work in the console?


this works:
$("#lbl" & i).text(w)

This doesn’t work:
$("#lbl" & i).text = w

Thank you for solving