Closed annieneel closed 9 years ago
That id refers to a Javascript variable. So that id string becomes the name of a global variable to reference in the DOM. In Javascript variables cannot be just numbers and must be started with a letter or approved special character. Given that twig allows to you easily concatenate strings to create dynamic id's, how is this not ideal?
The site I'm building has a potential for multiple maps on one page. I was going to use the block ID as the id - but numbers do not work as the id. I appended a 'm' on the front of the id, but that's not 100% ideal.
works while
does not.