Quantcast
Viewing all articles
Browse latest Browse all 28

Dynamic id on switch not working

I am currently trying to use a dynamic id but I an unable to use it in my code. Currently I set the id using an incremental for loop with a prefix. So the id's are "check_1", "check_2" ect..

How do I reference these later? This is not working so I don't know how to go about it so I can check that all the switches are on?

$['check_'.i]

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>