[jQuery] Integers can be rounded with .data() so use .attr() to retrieve them
When using jQuery’s .data() method, integers with many digits can sometimes be rounded, so let’s use .attr() to retrieve them instead.
> //JavaScript
$('#link').data('id')
1.2345678901234568e+29
$('#link').attr('data-id')
"123456789012345678901234567890"
> //JavaScript
$('#link').data('id')
"123456789012345678901234567890"
$('#link').attr('data-id')
"123456789012345678901234567890"
That’s all from the Gemba.