Check out this simple example on jsfiddle
<div id ="a" data-siteid="00005">00005 turns into:</div>
<div id="b" data-siteid="S00005">S00005 turns into: </div>
code
$('#a').append($('#a').data("siteid"));
$('#b').append($('#b').data("siteid"));
result
00005 turns into:5
S00005 turns into: S00005
I would like to return “00005” and “S00005”.
Try
From the jQuery Docs