In this page, what i want is when i click on the first item on the left " example:education" it gives information about education appears. Thats no problem but when i clicked the other item “example:energy” the last one i clicked “education” hides and then “energy” shows. So on and on.
Try to find examples but cant find it.
The optimal code will look like something that @jonatandor35 wrote (as you have a bunch of elements you are working with), so try to implement it for sure.
Looking at your code, you could just add the relevant hide() functions, like this:
export function educationText_click(event) {
$w("#education").show();
$w("#energy").hide();
//Add your code for this event here:
}
export function energyText_click(event) {
$w("#energy").show();
$w("#education").hide();
}