I need some explanations. I'm trying to change the text of a button which is in an array of buttons. $buttons is my array of buttons. My question is simple: why can I change the text of all my buttons in my array, but when I target a button "$buttons[1]" it doesn't work.
$buttons.text("My NEW Text");
works and change the text of all buttons in my $buttons array but when I do
$buttons[1].text("My NEW Text");
it give me the error:
"$buttons[1].text is not a function"