jquery-toggles
jquery-toggles copied to clipboard
$("#selector_id").data("toggles"); is not working
Main functionality to get current state of toggle is not working
myToggle = $("#selector_id").data("toggles"); //console.log(myToggle) shows undefined.
Also this one is returning "undefined". myToggle = $("#selector_id").data("toggle-activate");
I am using A) Chrome Browser (Version 80.0.3987.122 (Official Build) (64-bit) B) jQuery Toggles v2.0.4
I have not tested on other browsers.
Show all your code to see the problem