Need help with 'read more' button (OnClick)

@service64304 check this out:

$w.onReady(() => {
    $w("#button1").onClick(() => {
        viewMore("sectionCollapsed") 
        //You can change the name of the section you want to collapse/expand in here, without the $w("#")
    })
})

const viewMore = (section) => {
    //Just a different way of doing if statements.
    $w(`#${section}`).collapsed ?
    $w(`#${section}`).expand() :
    $w(`#${section}`).collapse()
}

Big Landing Page | Long Text (editorx.io)