I would like to use a JS variable in a Go block inside a template. Here's where I set the variable:
{{range $ tourney no, $ tourney: =. }} & Lt; Ul & gt; & Lt; Strong & gt; Numero do Turonoi: {{$ tourneyNo}} & lt; / Strong>: & lt; / Ul & gt; & Lt; Script type = "text / javascript" & gt; Var $ selectedTourney = {{$ tourneyNo}}; // set $ selectedTornie = last $ toron none - say it is 209
And here's how I would like to use it:
{{index with $ SelectTourney}} $ $ selected Torny should be replaced in code by 209, as is the second part of the code that is set before {{.}} {{End}}
working ; I want to derive from the element that was defined earlier in the $ $ tourney variable in the index.
The goal is to target that a list of tournaments is displayed, the user clicks on one of the research institutes and information about this tournament is displayed, using JS, one below On the same page.
Thanks a lot for help: D
No comments:
Post a Comment