Thanks for the tip! I wasn’t successful with that code but I was able to get it working going a similar route:
$w.onReady(function () {
$w("#Question").onClick((event) => {
const $item = $w.at(event.context)
$item('#FAQbox').changeState("Answer");
} );
$w("#Answer").onClick((event) => {
const $item = $w.at(event.context)
$item('#FAQbox').changeState("Question");
} );
});