HTML data attributes can be seen on Inspector tab, but How can I inspect jQuery data() which are set by code like
$( element ).data( "foo", 52 );
Thanks for all the answers But I like to know is there a simple way to inspect all jQuery data() of the page like HTML data attributes displaying currently in the inspector tab,
Simply use console.log
:
$(element).data("foo");