jquery-toggles icon indicating copy to clipboard operation
jquery-toggles copied to clipboard

$("#selector_id").data("toggles"); is not working

Open fakharak opened this issue 4 years ago • 1 comments

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.

fakharak avatar Mar 05 '20 13:03 fakharak

Show all your code to see the problem

Cajami avatar Mar 05 '20 13:03 Cajami