Creating an expandable text box with a "show more..." in a Repeater

@massasalah18 , thank you, but this code doesn’t work for my repeater wit dynamic text boxes
I saw this element in some codes, but how and where to correctly integrate in your code you sent me?
$w(" #repeater1 ").forEachItem( ($w, itemData, index) => {