Show/ Hide div on layer visibility

2792
1
Jump to solution
05-14-2015 11:57 AM
CraigLinn
New Contributor III

I am trying to get a div container to show when a specific layer is turned on and turn off a div once a new layer is selected.

Please see attached I am open to suggestions. Thanks.

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

Craig Linn​ you can use esri/domUtils hide and show methods to quickly hide and show a dom node.  Here's a link to slightly modified version of your code that shows/hides the layer info depending on the toggled check-box.

http://output.jsbin.com/caxukayoho/1/

View solution in original post

1 Reply
KellyHutchins
Esri Frequent Contributor

Craig Linn​ you can use esri/domUtils hide and show methods to quickly hide and show a dom node.  Here's a link to slightly modified version of your code that shows/hides the layer info depending on the toggled check-box.

http://output.jsbin.com/caxukayoho/1/