In the Globals
I have a field
which is of type table
. I was trying to access this table in the javascript in order to get the values of particular rows.
<script>
var myTable = "{{ craft.globals.getSetByHandle('myGlobal').myTable }}";
</script>
It returns a string "Array"
. If I put []
around the expression, it will return ["Array"]
.
Do you know a way to get access to this table?