Replies: 1 comment 1 reply
-
Hi, I don't understand why you don't want to use a variable to communicate with the client via script? there aren't other options. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I would like to know how I can access the elements from my views through JS.
Example: Lets say that I've a "Text Output" element and I want to set the content through JS without using a variable. So everytime that I execute "script" the value changes.
I know that as we are in the server side I can't use "Document" for selection, so Document.querySelector or Document.getElementById aren't an option to reach the elements throught scripts.
Is there a way to achieve this ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions