How to get and set link text with $w

$w(“#horizontalMenu1”) = “abc”;
$w(“#horizontalMenu1”).valueI() = “abc”;
$w(“#horizontalMenu1”).text() = “abc”;

???

Hi Adam,

First off, to access properties, you should leave out the parentheses. As an example: $w(“horizontalMenu1”).value

I need little more information. What exactly are you trying to change? What type of element? And what do you mean by “link text”?

Thanks

Hi Adam,

If I understand correctly, you’re trying to use API for site menu.
This isn’t supported (yet :slight_smile: ).
An alternative will be creating your own menu using buttons.

Liran.