SyntaxFix
Write A Post
Hire A Developer
Questions
Circa 2019, using jquery, this can be accessed using $('#DOMId').data('typeId') where $('#DOMId') is the jquery selector for your span element.
$('#DOMId').data('typeId')
$('#DOMId')