In the following case, you have a code being reported in the data-produto
attribute of my input.
$(".valor.partida").bind('blur', function(){
alert($(this).data("produto"));
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><inputclass="valor partida" type="text" name="novo_valor_partida-1" value="11,11" data-produto="0101000" data-id="1">
The problem is that when you get the value of this attribute, it returns without the initial zero, only 101000
.
Why does this occur?