Here is my html:
<ul class="inboxList">
<li data-selecttype='global|mailbox|inbox'>Inbox</li>
</ul>
And here is my jquery code:
$(".inboxList").children().each(function(child){
console.log($(child).data("selecttype"));
});
I also tried taking out the $() in the child:
$(".inboxList").children().each(function(child){
console.log(child.data("selecttype"));
});
But that didn't work.
My return values are null and undefined. I was expecting the return value to be global|mailbox|inbox What am I doing incorrectly?
Thanks for the assistance!