#4 Passing module parameters with turnOn
Pass function the Module Id as parameter with turnOn
This page creates a unique DOM attribute and sets it on a div. turnOn then passes this attribute to a JavaScript function, which identifies the element with a queryselector and performs DOM manipulations.
In this tutorial you'll learn how to:
-
Create a unique DOM attribute
-
Pass it to a JavaScript function
Look at the text below to see the effect.
turnOn has passed the domAttribute: turn-on-example-436
#4 Passing module parameters with turnOn
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX