Instead of using the Toggle button I would rather use a switch for a better visual representation.
If i add a template item as such:
and then I try to modify the attribute of the item using jquery as such, it fails (no error, it simply doesn't work):
but if i move the html markup out of the template and put it somewhere else on the page, it works perfectly fine. This also happens when i try to use:
If i move the checkbox out of the toolbar it works fine.
Is there a way to use the switch, inside the toolbar?