For this html
this js:
console.log($(\'div\').data(\'a\'));
retur
Yep, use:
console.log($('div').attr('data-a'));